Package org.springframework.data.solr.core.query.result

Examples of org.springframework.data.solr.core.query.result.TermsPage


    ExampleSolrBean bean3 = new ExampleSolrBean("id-3", "three", null);

    solrTemplate.saveBeans(Arrays.asList(bean1, bean2, bean3));
    solrTemplate.commit();

    TermsPage page = solrTemplate.queryForTermsPage(query);

    ArrayList<TermsFieldEntry> values = Lists.newArrayList(page.getTermsForField("name"));
    Assert.assertEquals("three", values.get(0).getValue());
    Assert.assertEquals(3, values.get(0).getValueCount());

    Assert.assertEquals("two", values.get(1).getValue());
    Assert.assertEquals(2, values.get(1).getValueCount());
View Full Code Here

TOP

Related Classes of org.springframework.data.solr.core.query.result.TermsPage

Copyright © 2018 www.massapicom. 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.