org.apache.lucene.facet.old
public final class AdaptiveFacetsAccumulator extends OldFacetsAccumulator
FacetsAccumulator whose behavior regarding complements, sampling,
etc. is not set up front but rather is determined at accumulation time
according to the statistics of the accumulated set of documents and the
index.
Note: Sampling accumulation (Accumulation over a sampled-set of the results),
does not guarantee accurate values for
FacetResult.getNumValidDescendants().
DEFAULT_COMPLEMENT_THRESHOLD, DISABLE_COMPLEMENT, FORCE_COMPLEMENT, isUsingComplements, maxPartitions, partitionSizefacetArrays, indexReader, taxonomyReadersearchParams| Constructor and Description |
|---|
AdaptiveFacetsAccumulator(FacetSearchParams searchParams,
IndexReader indexReader,
TaxonomyReader taxonomyReader)
Create an
AdaptiveFacetsAccumulator |
AdaptiveFacetsAccumulator(FacetSearchParams searchParams,
IndexReader indexReader,
TaxonomyReader taxonomyReader,
FacetArrays facetArrays)
Create an
AdaptiveFacetsAccumulator |
| Modifier and Type | Method and Description |
|---|---|
List<FacetResult> |
accumulate(ScoredDocIDs docids) |
Sampler |
getSampler() |
void |
setSampler(Sampler sampler)
Set the sampler.
|
accumulate, actualDocsToAccumulate, createAggregator, createFacetResultsHandler, createOrdinalValueResolver, getCategoryListMap, getComplementThreshold, getTotalCountsFactor, isUsingComplements, mayComplement, setComplementThreshold, shouldComplementgetAggregator, groupRequests, requiresDocScorescreate, create, emptyResultpublic AdaptiveFacetsAccumulator(FacetSearchParams searchParams, IndexReader indexReader, TaxonomyReader taxonomyReader)
AdaptiveFacetsAccumulatorpublic AdaptiveFacetsAccumulator(FacetSearchParams searchParams, IndexReader indexReader, TaxonomyReader taxonomyReader, FacetArrays facetArrays)
AdaptiveFacetsAccumulatorpublic void setSampler(Sampler sampler)
sampler - sampler to setpublic List<FacetResult> accumulate(ScoredDocIDs docids) throws IOException
accumulate in class OldFacetsAccumulatorIOExceptionpublic final Sampler getSampler()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.