public class SamplingWrapper extends StandardFacetsAccumulator
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, searchParams, taxonomyReader| Constructor and Description |
|---|
SamplingWrapper(StandardFacetsAccumulator delegee,
Sampler sampler) |
| Modifier and Type | Method and Description |
|---|---|
List<FacetResult> |
accumulate(ScoredDocIDs docids) |
double |
getComplementThreshold()
Returns the complement threshold.
|
void |
setComplementThreshold(double complementThreshold)
Set the complement threshold.
|
accumulate, actualDocsToAccumulate, createFacetResultsHandler, getCategoryListMap, getTotalCountsFactor, isUsingComplements, mayComplement, shouldComplementcreate, emptyResult, getAggregator, getCategoryListspublic SamplingWrapper(StandardFacetsAccumulator delegee, Sampler sampler)
public List<FacetResult> accumulate(ScoredDocIDs docids) throws IOException
accumulate in class StandardFacetsAccumulatorIOExceptionpublic double getComplementThreshold()
StandardFacetsAccumulatorgetComplementThreshold in class StandardFacetsAccumulatorStandardFacetsAccumulator.setComplementThreshold(double)public void setComplementThreshold(double complementThreshold)
StandardFacetsAccumulator
For the default settings see StandardFacetsAccumulator.DEFAULT_COMPLEMENT_THRESHOLD.
To forcing complements in all cases pass StandardFacetsAccumulator.FORCE_COMPLEMENT.
This is mostly useful for testing purposes, as forcing complements when only
tiny fraction of available documents match the query does not make sense and
would incur performance degradations.
To disable complements pass StandardFacetsAccumulator.DISABLE_COMPLEMENT.
setComplementThreshold in class StandardFacetsAccumulatorcomplementThreshold - the complement threshold to setStandardFacetsAccumulator.getComplementThreshold()Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.