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, partitionSize
facetArrays, indexReader, taxonomyReader
searchParams
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, shouldComplement
getAggregator, groupRequests, requiresDocScores
create, create, emptyResult
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 OldFacetsAccumulator
IOException
public final Sampler getSampler()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.