org.apache.lucene.facet.search
public class MultiFacetsAccumulator extends FacetsAccumulator
FacetsAccumulator and returns a merged list of
FacetResult, in the order the accumulators were given.searchParams| 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. |
boolean |
requiresDocScores()
Used by
FacetsCollector to determine if document scores need to be
collected in addition to matching documents. |
static FacetsAccumulator |
wrap(FacetsAccumulator... accumulators)
Wraps the given
accumulators. |
create, create, emptyResultpublic static FacetsAccumulator wrap(FacetsAccumulator... accumulators)
accumulators.public boolean requiresDocScores()
FacetsAccumulatorFacetsCollector to determine if document scores need to be
collected in addition to matching documents.requiresDocScores in class FacetsAccumulatorpublic List<FacetResult> accumulate(List<FacetsCollector.MatchingDocs> matchingDocs) throws IOException
FacetsAccumulatorFacetsCollector to build the list of facet results that match the facet requests that were
given in the constructor.accumulate in class FacetsAccumulatormatchingDocs - the documents that matched the query, per-segment.IOExceptionCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.