SOLR 无法进行长查询,请尝试较短的查询

发布于 2025-01-07 23:51:34 字数 428 浏览 0 评论 0原文

我现在遇到这个问题,当我进行如下搜索时:

"really long search for something"

Solr 没有返回结果,这实际上很好,这就是我想要的。但我现在想做的是为用户提供替代方案,例如:

"really long search for something" - sorry no luck

"really long search" - found 2 results

"really long" - found 10 results

"really" - found 25 results

我只是不知道在 SOLR 中是否有一些简单的方法可以做到这一点,或者我必须手动剪切搜索短语并对上面的每个短语进行新的搜索?

感谢您的建议,即使这是不可能的也会非常有帮助。

I have this problem, right now when I do a search like:

"really long search for something"

Solr returns no results, that is good actually, that is how I want it. But what I would like to do now is offer the user alternatives like:

"really long search for something" - sorry no luck

"really long search" - found 2 results

"really long" - found 10 results

"really" - found 25 results

I just dont know if there is some simple way of doing this in SOLR or I have to manually cut the search phrase and do new search with every phrase above?

Thanks for advice, even no way this is not possible would be very helpful..

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

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

发布评论

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

评论(1

往事随风而去 2025-01-14 23:51:34

您肯定最终会通过客户端或实现自定义请求处理程序对每个查询执行多次调用。

已经提出了 JIRA 来解决该问题,您可以查看它。

同样的事情也可能有帮助 -
http://sujitpal.blogspot.in/2011/02/solr -自定义搜索请求处理程序.html

You would surely end up performing multiple calls for each queries either through client or implementing a Custom Request Handler.

A JIRA raised already to address the issue, you can check on it .

Something on the same lines might also help -
http://sujitpal.blogspot.in/2011/02/solr-custom-search-requesthandler.html

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