Package org.apache.lucene.facet.search.OrdinalsCache

Examples of org.apache.lucene.facet.search.OrdinalsCache.CachedOrds


*/
public class CachedOrdsCountingFacetsAggregator extends IntRollupFacetsAggregator {
 
  @Override
  public void aggregate(MatchingDocs matchingDocs, CategoryListParams clp, FacetArrays facetArrays) throws IOException {
    final CachedOrds ords = OrdinalsCache.getCachedOrds(matchingDocs.context, clp);
    if (ords == null) {
      return; // this segment has no ordinals for the given category list
    }
    final int[] counts = facetArrays.getIntArray();
    int doc = 0;
View Full Code Here

TOP

Related Classes of org.apache.lucene.facet.search.OrdinalsCache.CachedOrds

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.