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, emptyResult
public static FacetsAccumulator wrap(FacetsAccumulator... accumulators)
accumulators
.public boolean requiresDocScores()
FacetsAccumulator
FacetsCollector
to determine if document scores need to be
collected in addition to matching documents.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-2014 Apache Software Foundation. All Rights Reserved.