Package org.apache.lucene.facet.search.sampling.Sampler

Examples of org.apache.lucene.facet.search.sampling.Sampler.SampleResult


    // Replacing the original searchParams with the over-sampled (and without statistics-compute)
    FacetSearchParams original = delegee.searchParams;
    delegee.searchParams = sampler.overSampledSearchParams(original);
   
    SampleResult sampleSet = sampler.getSampleSet(docids);

    List<FacetResult> sampleRes = delegee.accumulate(sampleSet.docids);
    setAllowLabeling(origAllowLabeling);

    List<FacetResult> fixedRes = new ArrayList<FacetResult>();
View Full Code Here


    return fixedRes;
  }

  @Override
  protected ScoredDocIDs actualDocsToAccumulate(ScoredDocIDs docids) throws IOException {
    SampleResult sampleRes = sampler.getSampleSet(docids);
    samplingRatio = sampleRes.actualSampleRatio;
    return sampleRes.docids;
  }
View Full Code Here

TOP

Related Classes of org.apache.lucene.facet.search.sampling.Sampler.SampleResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.