我是 Lucene.NET 的新手,并且已经遇到了一个(我认为)难题。我有一个对象,可以说是“公司”,现在有 3 种不同类型的公司按重要性从低到高排序。
如果我查询搜索词,我想为具有高度重要性的公司提供“提升”因素,例如(伪代码):
[Boost("If Importance is = 1 then 1, If Importance is 2 then 2, If Importance is 3 then 3")]
public int Importance
{get;set;}
希望你明白我的意思,谢谢!