Lucene 2.9 中按相关性对项目进行排序的问题

发布于 2024-12-23 14:48:37 字数 317 浏览 5 评论 0原文

我们使用 Lucene.NET 版本 2.9 来使用自由文本查询来搜索项目。我们得到 Lucene 按相关性自动排序的项目。除了一个奇怪的情况外,它一直运行良好。当搜索敏捷项目管理时,Lucene返回的前4条如下。

  1. 敏捷项目管理傻瓜指南
  2. 敏捷项目管理基础知识
  3. 敏捷项目管理
  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.

  1. Agile Project Management For Dummies
  2. Fundamentals of Agile Project Management
  3. Agile project management
  4. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

白昼 2024-12-30 14:48:37

我首先要查看的是搜索中还包含哪些其他字段?例如,包含“敏捷”一词的描述字段可能会将前两个推高。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文