public final class AdaptiveFacetsAccumulator extends StandardFacetsAccumulator
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, partitionSize
facetArrays, indexReader, searchParams, taxonomyReader
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, createFacetResultsHandler, getCategoryListMap, getComplementThreshold, getTotalCountsFactor, isUsingComplements, mayComplement, setComplementThreshold, shouldComplement
create, emptyResult, getAggregator, getCategoryLists
public AdaptiveFacetsAccumulator(FacetSearchParams searchParams, IndexReader indexReader, TaxonomyReader taxonomyReader)
AdaptiveFacetsAccumulator
public AdaptiveFacetsAccumulator(FacetSearchParams searchParams, IndexReader indexReader, TaxonomyReader taxonomyReader, FacetArrays facetArrays)
AdaptiveFacetsAccumulator
public void setSampler(Sampler sampler)
sampler
- sampler to setpublic List<FacetResult> accumulate(ScoredDocIDs docids) throws IOException
accumulate
in class StandardFacetsAccumulator
IOException
public final Sampler getSampler()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.