Solr 1.3 忽略单词“jackie”
我正在使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有几个想法:
debugQuery=on
。看看它是如何分析的。A couple of ideas:
debugQuery=on
when querying Jackie in the Solr admin console. See how it gets analyzed.验证在您的架构中,查询分析器和索引分析器的过滤器工厂是否对应(例如,它们应该具有相同的词干配置)。当然,如果您在建立索引后更改了架构,那么查询分析器过滤器应该与索引时使用的过滤器相匹配,否则您将必须重新索引。
当查询分析器使用与索引分析器不同的词干配置(例如使用不同的语言)时,通常会出现您描述的问题。
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).