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

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


          Field field = new SimpleField(facetField.getName());
          if (CollectionUtils.isNotEmpty(facetField.getValues())) {
            List<FacetFieldEntry> pageEntries = new ArrayList<FacetFieldEntry>(initalPageSize);
            for (Count count : facetField.getValues()) {
              if (count != null) {
                pageEntries.add(new SimpleFacetFieldEntry(field, count.getName(), count.getCount()));
              }
            }
            facetResult.put(field, new SolrResultPage<FacetFieldEntry>(pageEntries, query.getFacetOptions()
                .getPageable(), facetField.getValueCount(), null));
          } else {
View Full Code Here

TOP

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

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.