org.apache.lucene.facet.sortedset
public class SortedSetDocValuesAccumulator extends FacetsAccumulator
FacetsAccumulator that uses previously
indexed SortedSetDocValuesFacetFields to perform faceting,
without require a separate taxonomy index. Faceting is
a bit slower (~25%), and there is added cost on every
IndexReader open to create a new SortedSetDocValuesReaderState. Furthermore, this does
not support hierarchical facets; only flat (dimension +
label) facets, but it uses quite a bit less RAM to do so.searchParams| Constructor and Description |
|---|
SortedSetDocValuesAccumulator(SortedSetDocValuesReaderState state,
FacetSearchParams fsp)
Constructor with the given facet search params.
|
SortedSetDocValuesAccumulator(SortedSetDocValuesReaderState state,
FacetSearchParams fsp,
FacetArrays arrays) |
| 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, emptyResultpublic SortedSetDocValuesAccumulator(SortedSetDocValuesReaderState state, FacetSearchParams fsp) throws IOException
IOExceptionpublic SortedSetDocValuesAccumulator(SortedSetDocValuesReaderState state, FacetSearchParams fsp, FacetArrays arrays) throws IOException
IOExceptionpublic 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.IOExceptionpublic boolean requiresDocScores()
FacetsAccumulatorFacetsCollector to determine if document scores need to be
collected in addition to matching documents.requiresDocScores in class FacetsAccumulatorCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.