Solr小单词搜索问题
我们已经为客户实施了Solr,但是在查询中遇到了小词的问题。例如,如果我们搜索维生素D3 :
search_name:(vitamine^4 AND d3)
我们还获得标题中没有D3的产品。 奇怪的是,如果我们只搜索D3:
search_name:(d3)
我们不会得到任何结果。 我们尝试在protwords.txt中添加D3,但随后,两个查询都不会返回任何内容。
不在protwords.txt中添加d3:
” 。
nofollow noreferrer“>打印屏幕5
有人遇到了同样的问题,您是如何解决的?
谢谢你!
We have implemented SOLR for a client, but we have issues with small word in the query. For example if we search for Vitamine D3 with:
search_name:(vitamine^4 AND d3)
we also get products that don't have D3 in the title.
It's strange that if we search only for d3 with:
search_name:(d3)
we don't get any results.
We tried to add d3 in protwords.txt, but then, both queries don't return anything.
Without adding D3 in protwords.txt:
After adding D3 in protwords.txt:
Did anyone had the same issue, how did you manage to solve it?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论