Solr小单词搜索问题

发布于 2025-01-18 20:33:53 字数 617 浏览 4 评论 0原文

我们已经为客户实施了Solr,但是在查询中遇到了小词的问题。例如,如果我们搜索维生素D3

search_name:(vitamine^4 AND d3)

我们还获得标题中没有D3的产品。 奇怪的是,如果我们只搜索D3:

search_name:(d3)

我们不会得到任何结果。 我们尝试在protwords.txt中添加D3,但随后,两个查询都不会返回任何内容。

不在protwords.txt中添加d3:

打印屏幕1

打印屏幕2

” 。

​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:

print screen 1

print screen 2

print screen 3

After adding D3 in protwords.txt:

print screen 4

print screen 5

Did anyone had the same issue, how did you manage to solve it?

Thank you!

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文