Solr 1.3 忽略单词“jackie”

发布于 2024-09-15 06:54:43 字数 420 浏览 5 评论 0原文

我正在使用 Solr 1.3。最近,QA 报告了搜索功能的一个错误,即没有“Jackie”一词的结果。但是,当我使用 luke 查看文档时,有很多带有“jackie”一词的文档,例如,

 Jackie Holding, Kumar Rameshwaram, Morris Jackson
 Jackie Holding, Brendon Wessel, Smith McShlam
 Jackie Redmond, John Smith, Martha Doum
 Trevor Harris, Jackie Collins, Martin Green

如果我搜索 jackie 以外的任何术语,solr 将返回文档。但没有包含“Jackie”一词的文档。甚至,我尝试使用所有分析器,solr 没有返回任何文档。

我无法找出问题所在。请帮我。

I am using Solr 1.3. Recently, QA report a bug for the search functionality that there is no result for the word "Jackie". But, when i looked into document using luke, there is lots of document with the word "jackie" e.g.

 Jackie Holding, Kumar Rameshwaram, Morris Jackson
 Jackie Holding, Brendon Wessel, Smith McShlam
 Jackie Redmond, John Smith, Martha Doum
 Trevor Harris, Jackie Collins, Martin Green

If i search for any term other than jackie, solr return the documents.But no documents for the word "Jackie". Even, i try it with all analyzer, solr return no document.

I am not able to figure out the problem. Please help me.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

各自安好 2024-09-22 06:54:44

有几个想法:

  • 在 Solr 管理控制台中查询 Jackie 时尝试设置 debugQuery=on 。看看它是如何分析的。
  • 检查“Jackie”是否不在停用词列表 (stopwords.txt) 中。
  • 尝试将“Jackie”添加到受保护的单词列表 (protwords.txt),这样它就不会被阻止。

A couple of ideas:

  • try setting debugQuery=on when querying Jackie in the Solr admin console. See how it gets analyzed.
  • Check that 'Jackie' is not in the stopwords list (stopwords.txt)
  • Try adding 'Jackie' to the protected word list (protwords.txt) so it doesn't get stemmed.
少女的英雄梦 2024-09-22 06:54:44

验证在您的架构中,查询分析器和索引分析器的过滤器工厂是否对应(例如,它们应该具有相同的词干配置)。当然,如果您在建立索引后更改了架构,那么查询分析器过滤器应该与索引时使用的过滤器相匹配,否则您将必须重新索引。

当查询分析器使用与索引分析器不同的词干配置(例如使用不同的语言)时,通常会出现您描述的问题。

Verify that, in your schema, the filter factories for your query and index analyzers are corresponding (they should have the same stemming configuration, for instance). Of course, if you have changed your schema since indexing, then the query analyzer filters should match the ones that were used at index time, or you will have to re-index.

The problem you describe typically occurs when the query analyzer uses a different stemming configuration than the index analyzer (for instance using different languages).

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