Examples of increaseValueOfField()


Examples of org.springframework.data.solr.core.query.PartialUpdate.increaseValueOfField()

  @Test
  @SuppressWarnings("unchecked")
  public void testConvertWhenIncreasingValue() {
    PartialUpdate update = new PartialUpdate("id", "1");
    update.increaseValueOfField("field_1", 1);

    SolrInputDocument document = converter.convert(update);

    Assert.assertTrue(document.getFieldValue("field_1") instanceof Map);
    Assert.assertEquals(1, ((Map<String, Object>) document.getFieldValue("field_1")).get("inc"));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.