Examples of TermsQuery


Examples of org.springframework.data.solr.core.query.TermsQuery

    Assert.assertEquals("/terms", parser.constructSolrQuery(q).getRequestHandler());
  }

  @Test
  public void testConstructSolrQuerySetRequestHandlerToDefaultWhenBlank() {
    TermsQuery q = SimpleTermsQuery.queryBuilder().handledBy("   ").build();

    Assert.assertEquals("/terms", parser.constructSolrQuery(q).getRequestHandler());
  }
View Full Code Here

Examples of org.springframework.data.solr.core.query.TermsQuery

        .getSnipplets().get(0));
  }

  @Test
  public void testTermsQuery() {
    TermsQuery query = SimpleTermsQuery.queryBuilder().fields("name").build();

    ExampleSolrBean bean1 = new ExampleSolrBean("id-1", "one two three", null);
    ExampleSolrBean bean2 = new ExampleSolrBean("id-2", "two three", null);
    ExampleSolrBean bean3 = new ExampleSolrBean("id-3", "three", null);
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.