
[英]Calculate the score only based on the documents have more occurance of term in lucene
[英]Is there any way for me to change scoring based on term position in Lucene?
例如,如果我正在搜索带有术语“harry”的书名的索引,则“Dirty Harry”的得分与“Harry Potter”相同,当两个项目得分相同时,顺序是随机的。 我想把我的搜索词(哈利波特)开头的那个加权。
我宁愿不使用TermPostionVector,因为看起来这是我在搜索和评分完成后才能阅读的内容。
谢谢你的时间/考虑。
查找spanquery 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.