org.apache.lucene.facet.range
public class RangeAccumulator extends FacetsAccumulator
NumericDocValues
and accumulates
counts for provided ranges. This is dynamic (does not
use the taxonomy index or anything from the index
except the NumericDocValuesField).searchParams
Constructor and Description |
---|
RangeAccumulator(FacetRequest... facetRequests) |
RangeAccumulator(List<FacetRequest> facetRequests) |
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. |
create, create, emptyResult
public RangeAccumulator(FacetRequest... facetRequests)
public RangeAccumulator(List<FacetRequest> facetRequests)
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
public boolean requiresDocScores()
FacetsAccumulator
FacetsCollector
to determine if document scores need to be
collected in addition to matching documents.requiresDocScores
in class FacetsAccumulator
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.