Examples of rearrangeFacetResult()


Examples of org.apache.lucene.facet.partitions.PartitionsFacetResultsHandler.rearrangeFacetResult()

      FacetRequest fr = fres.getFacetRequest();
      PartitionsFacetResultsHandler frh = createFacetResultsHandler(fr, createOrdinalValueResolver(fr));
      if (sampleFixer != null) {
        // fix the result of current request
        sampleFixer.fixResult(docids, fres, sampleSet.actualSampleRatio);
        fres = frh.rearrangeFacetResult(fres); // let delegee's handler do any
      }
     
      if (shouldOversample) {
        // Using the sampler to trim the extra (over-sampled) results
        fres = sampler.trimResult(fres);
View Full Code Here

Examples of org.apache.lucene.facet.partitions.PartitionsFacetResultsHandler.rearrangeFacetResult()

      PartitionsFacetResultsHandler frh = createFacetResultsHandler(fr, createOrdinalValueResolver(fr));
      if (samplerFixer != null) {
        // fix the result of current request
        samplerFixer.fixResult(docids, fres, samplingRatio);
       
        fres = frh.rearrangeFacetResult(fres); // let delegee's handler do any arranging it needs to

        if (shouldOversample) {
          // Using the sampler to trim the extra (over-sampled) results
          fres = sampler.trimResult(fres);
        }
View Full Code Here

Examples of org.apache.lucene.facet.partitions.PartitionsFacetResultsHandler.rearrangeFacetResult()

      PartitionsFacetResultsHandler frh = createFacetResultsHandler(fres.getFacetRequest());
      if (samplerFixer != null) {
        // fix the result of current request
        samplerFixer.fixResult(docids, fres, samplingRatio);
       
        fres = frh.rearrangeFacetResult(fres); // let delegee's handler do any arranging it needs to

        if (shouldOversample) {
          // Using the sampler to trim the extra (over-sampled) results
          fres = sampler.trimResult(fres);
        }
View Full Code Here

Examples of org.apache.lucene.facet.partitions.PartitionsFacetResultsHandler.rearrangeFacetResult()

      // for sure fres is not null because this is guaranteed by the delegee.
      PartitionsFacetResultsHandler frh = createFacetResultsHandler(fres.getFacetRequest());
      if (sampleFixer != null) {
        // fix the result of current request
        sampleFixer.fixResult(docids, fres, sampleSet.actualSampleRatio);
        fres = frh.rearrangeFacetResult(fres); // let delegee's handler do any
      }
     
      if (shouldOversample) {
        // Using the sampler to trim the extra (over-sampled) results
        fres = sampler.trimResult(fres);
View Full Code Here

Examples of org.apache.lucene.facet.partitions.PartitionsFacetResultsHandler.rearrangeFacetResult()

    for (FacetResult fres : sampleRes) {
      // for sure fres is not null because this is guaranteed by the delegee.
      PartitionsFacetResultsHandler frh = createFacetResultsHandler(fres.getFacetRequest());
      // fix the result of current request
      sampler.getSampleFixer(indexReader, taxonomyReader, searchParams).fixResult(docids, fres);
      fres = frh.rearrangeFacetResult(fres); // let delegee's handler do any
     
      // Using the sampler to trim the extra (over-sampled) results
      fres = sampler.trimResult(fres);
     
      // final labeling if allowed (because labeling is a costly operation)
View Full Code Here

Examples of org.apache.lucene.facet.partitions.PartitionsFacetResultsHandler.rearrangeFacetResult()

      // for sure fres is not null because this is guaranteed by the delegee.
      PartitionsFacetResultsHandler frh = createFacetResultsHandler(fres.getFacetRequest());
      // fix the result of current request
      sampler.getSampleFixer(indexReader, taxonomyReader, searchParams).fixResult(docids, fres);
     
      fres = frh.rearrangeFacetResult(fres); // let delegee's handler do any arranging it needs to

      // Using the sampler to trim the extra (over-sampled) results
      fres = sampler.trimResult(fres);

      // final labeling if allowed (because labeling is a costly operation)
View Full Code Here

Examples of org.apache.lucene.facet.search.FacetResultsHandler.rearrangeFacetResult()

          taxonomyReader);
      // fix the result of current request
      sampler.getSampleFixer(indexReader, taxonomyReader, searchParams)
          .fixResult(docids, fres);
     
      fres = frh.rearrangeFacetResult(fres); // let delegee's handler do any

      // Using the sampler to trim the extra (over-sampled) results
      fres = sampler.trimResult(fres);
                                              // arranging it needs to
      // final labeling if allowed (because labeling is a costly operation)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.