public class RangeFacetsAccumulatorWrapper extends FacetsAccumulator
FacetsAccumulator
and a
RangeAccumulator
facetArrays, indexReader, searchParams, taxonomyReader
Modifier and Type | Method and Description |
---|---|
List<FacetResult> |
accumulate(List<FacetsCollector.MatchingDocs> matchingDocs)
Used by
FacetsCollector to build the list of facet results that match the facet requests that were
given in the constructor. |
static FacetsAccumulator |
create(FacetSearchParams fsp,
IndexReader indexReader,
TaxonomyReader taxoReader) |
static FacetsAccumulator |
create(FacetSearchParams fsp,
IndexReader indexReader,
TaxonomyReader taxoReader,
FacetArrays arrays) |
protected FacetResultsHandler |
createFacetResultsHandler(FacetRequest fr)
Creates a
FacetResultsHandler that matches the given
FacetRequest . |
FacetsAggregator |
getAggregator()
Returns the
FacetsAggregator to use for aggregating the categories
found in the result documents. |
protected Set<CategoryListParams> |
getCategoryLists() |
boolean |
requiresDocScores() |
emptyResult
public static FacetsAccumulator create(FacetSearchParams fsp, IndexReader indexReader, TaxonomyReader taxoReader)
public static FacetsAccumulator create(FacetSearchParams fsp, IndexReader indexReader, TaxonomyReader taxoReader, FacetArrays arrays)
public FacetsAggregator getAggregator()
FacetsAccumulator
FacetsAggregator
to use for aggregating the categories
found in the result documents. The default implementation returns
CountingFacetsAggregator
, or FastCountingFacetsAggregator
if all categories can be decoded with DGapVInt8IntDecoder
.getAggregator
in class FacetsAccumulator
protected FacetResultsHandler createFacetResultsHandler(FacetRequest fr)
FacetsAccumulator
FacetResultsHandler
that matches the given
FacetRequest
.createFacetResultsHandler
in class FacetsAccumulator
protected Set<CategoryListParams> getCategoryLists()
getCategoryLists
in class FacetsAccumulator
public boolean requiresDocScores()
requiresDocScores
in class FacetsAccumulator
public List<FacetResult> accumulate(List<FacetsCollector.MatchingDocs> matchingDocs) throws IOException
FacetsAccumulator
FacetsCollector
to build the list of facet results
that match the facet requests
that were
given in the constructor.accumulate
in class FacetsAccumulator
matchingDocs
- the documents that matched the query, per-segment.IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.