org.apache.lucene.facet.sampling
public class TakmiSampleFixer extends SampleFixer
This fixer is suitable for scenarios which prioritize accuracy over performance.
Note: for statistically more accurate top-k selection, set
oversampleFactor
to at
least 2, so that the top-k categories would have better chance of showing up
in the sampled top-cK results (see SamplingParams.getOversampleFactor()
Constructor and Description |
---|
TakmiSampleFixer(IndexReader indexReader,
TaxonomyReader taxonomyReader,
FacetSearchParams searchParams) |
Modifier and Type | Method and Description |
---|---|
void |
singleNodeFix(FacetResultNode facetResNode,
ScoredDocIDs docIds,
double samplingRatio)
Fix the given node's value.
|
fixResult, fixResultNode
public TakmiSampleFixer(IndexReader indexReader, TaxonomyReader taxonomyReader, FacetSearchParams searchParams)
public void singleNodeFix(FacetResultNode facetResNode, ScoredDocIDs docIds, double samplingRatio) throws IOException
SampleFixer
singleNodeFix
in class SampleFixer
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.