Lucene 2.9 中按相关性对项目进行排序的问题
我们使用 Lucene.NET 版本 2.9 来使用自由文本查询来搜索项目。我们得到 Lucene 按相关性自动排序的项目。除了一个奇怪的情况外,它一直运行良好。当搜索敏捷项目管理时,Lucene返回的前4条如下。
- 敏捷项目管理傻瓜指南
- 敏捷项目管理基础知识
- 敏捷项目管理
- 敏捷项目管理
第 3 项或第 4 项应该显示在顶部,因为它们是完美的。在我们搜索的许多情况下,如果某个项目匹配 100%,它就会显示在顶部。任何人都可以解释一下这里发生了什么。我们正在使用标准分析仪。
We are using Lucene.NET Version 2.9 to search for items using free text query. We get the items automatically sorted by Lucene by relevance. It has been working great except for one odd case. When search for Agile project management, the top 4 items returned by Lucene are as follows.
- Agile Project Management For Dummies
- Fundamentals of Agile Project Management
- Agile project management
- Agile Project Management
The item 3 or 4 should be showing up at the top as they are perfect. In many cases that we searched, if an item matches 100%, it is shown at the top. Anybody can please explain what is happening here. We are using standard analyzier.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我首先要查看的是搜索中还包含哪些其他字段?例如,包含“敏捷”一词的描述字段可能会将前两个推高。
First thing I'd look at is what other fields are included in the search? A description field loaded with the word Agile could be pushing the first two up for example.