【发布时间】:2014-11-05 10:46:00
【问题描述】:
我有一个搜索字段“标题”,在其中,我想说“与标题开头匹配的内容应该在搜索结果中得分更高”。
例如
Title: "The quick brown fox jumps over the lazy dog"
Title: "the lazy dogs were under the jumping quick brown fox"
Title: "The lazy brown fox jumps over the quick dog"
Title: "The brown fox made quick jumps over the sleazy dog"
如果我搜索“快速”,我希望第一个结果排名第一,第四个结果排名第二。
这在 lucene 中可能吗?如果有任何区别,我正在使用 Lucene.NET / Version_29。
【问题讨论】:
标签: search lucene lucene.net information-retrieval