SampleFixer (Lucene 3.6.2 API)
Keywords: org.apache.lucene.facet.search.sampling.SampleFixer interface

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.lucene.facet.search.sampling
Interface SampleFixer

    public interface SampleFixer

Fixer of sample facet accumulation results

WARNING: This API is experimental and might change in incompatible ways in the next release.

Method Summary
`void` | `fixResult(ScoredDocIDs origDocIds, FacetResult fres)` Alter the input result, fixing it to account for the sampling.

Method Detail

### fixResult

    void fixResult(ScoredDocIDs origDocIds,
                   FacetResult fres)
                   throws IOException

  Alter the input result, fixing it to account for the sampling. This implementation can compute accurate or estimated counts for the sampled facets. For example, a faster correction could just multiply by a compensating factor.

  Parameters:
    `origDocIds` - full set of matching documents.
    `fres` - sample result to be fixed.
  Throws:
    `IOException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD