org.apache.lucene.facet.search
public class CountingFacetsAggregator extends IntRollupFacetsAggregator
FacetsAggregator which counts the number of times each category
appears in the given set of documents. This aggregator uses the
CategoryListIterator to read the encoded categories. If you used the
default settings while idnexing, you can use
FastCountingFacetsAggregator for better performance.| Constructor and Description |
|---|
CountingFacetsAggregator() |
| Modifier and Type | Method and Description |
|---|---|
void |
aggregate(FacetsCollector.MatchingDocs matchingDocs,
CategoryListParams clp,
FacetArrays facetArrays)
Aggregate the facets found in the given matching documents.
|
static FacetsAggregator |
create(CategoryListParams clp)
Returns a
FacetsAggregator suitable for counting categories given
the CategoryListParams. |
createOrdinalValueResolver, requiresDocScores, rollupValuespublic static FacetsAggregator create(CategoryListParams clp)
FacetsAggregator suitable for counting categories given
the CategoryListParams.public void aggregate(FacetsCollector.MatchingDocs matchingDocs, CategoryListParams clp, FacetArrays facetArrays) throws IOException
FacetsAggregatoraggregate in interface FacetsAggregatoraggregate in class IntRollupFacetsAggregatorIOExceptionCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.