org.apache.lucene.facet.search
Class MultiFacetsAccumulator
java.lang.Object
org.apache.lucene.facet.search.FacetsAccumulator
org.apache.lucene.facet.search.MultiFacetsAccumulator
public class MultiFacetsAccumulator
- extends FacetsAccumulator
Wraps multiple FacetsAccumulator
and returns a merged list of
FacetResult
, in the order the accumulators were given.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
wrap
public static FacetsAccumulator wrap(FacetsAccumulator... accumulators)
- Wraps the given
accumulators
.
requiresDocScores
public boolean requiresDocScores()
- Description copied from class:
FacetsAccumulator
- Used by
FacetsCollector
to determine if document scores need to be
collected in addition to matching documents.
- Specified by:
requiresDocScores
in class FacetsAccumulator
accumulate
public List<FacetResult> accumulate(List<FacetsCollector.MatchingDocs> matchingDocs)
throws IOException
- Description copied from class:
FacetsAccumulator
- Used by
FacetsCollector
to build the list of facet results
that match the facet requests
that were
given in the constructor.
- Specified by:
accumulate
in class FacetsAccumulator
- Parameters:
matchingDocs
- the documents that matched the query, per-segment.
- Throws:
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.