如何提升Lucene方面?

时间:2012-11-16 14:38:15

标签: lucene faceted-search facets

有没有办法在Lucene的一个方面增加一个提升因素?类似的东西:

List<CategoryPath> facetCategories = new ArrayList<CategoryPath>();
for (MyFeature f : allFeatures) {
    **Double boost = f.getBoost();** 
    facetCategories.add(new CategoryPath("feature", f.getName(), **bost**));
}
CategoryDocumentBuilder categoryDocBuilder = new CategoryDocumentBuilder(taxonomy);
categoryDocBuilder.setCategoryPaths(facetCategories);

0 个答案:

没有答案