Examples of ScoreFacetRequest


Examples of org.apache.lucene.facet.search.params.ScoreFacetRequest

  /* use a scoring aggregator */
  private FacetSearchParams sumScoreSearchParams() {
    // this will use default faceted indexing params, not altering anything about indexing
    FacetSearchParams res = super.getFacetedSearchParams();
    res.addFacetRequest(new ScoreFacetRequest(new CategoryPath("root", "a"), 10));
    return res;
  }
View Full Code Here

Examples of org.apache.lucene.facet.search.params.ScoreFacetRequest

   
    taxonomyWriter.close();
    iw.close();
   
    FacetSearchParams sParams = new FacetSearchParams();
    sParams.addFacetRequest(new ScoreFacetRequest(new CategoryPath("a"), 10));
   
    IndexReader r = IndexReader.open(indexDir);
    DirectoryTaxonomyReader taxo = new DirectoryTaxonomyReader(taxoDir);
   
    FacetsCollector fc = new FacetsCollector(sParams, r, taxo);
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.