有没有办法在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);