我如何查看/调试 SOLR 找到结果的方式?

发布于 2025-01-08 21:48:03 字数 67 浏览 2 评论 0原文

假设我搜索“ABLS”,SOLR 返回的结果对我来说没有任何意义。
我如何调试为什么 SOLR 选择返回该记录?

Let's say I search for "ABLS" and the SOLR returns a result that to me does not make any sense.
How can I debug why SOLR picked this record to be returned?

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

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

发布评论

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

评论(6

不打扰别人 2025-01-15 21:48:03

debugQuery=true 将帮助您获得详细的分数计算以及每个分数的解释。

有关评分的概述,请访问 链接

有关您的调试信息的详细说明可以参考链接

debugQuery=true would help you get the detailed score calculation and the explanation for each scores.

An over view of the scoring is available at link

For detailed explaination of the debug information you can refer Link

南风起 2025-01-15 21:48:03

您可以将 debugQuery=true&indent=true 添加到 URL 并检查结果。您还可以使用 solr 中的分析工具。转到管理并单击分析。您需要阅读 wiki 才能更深入地了解其中任何一个。

You could add debugQuery=true&indent=true to the url and examine the results. You could also use the analysis tool in solr. Go to the admin and click analysis. You would need to read the wiki to understand either of these more in depth.

花海 2025-01-15 21:48:03

queryDebug 会让您了解为什么您的评分看起来像这样(结束每个字段的相关性)。
我会得到一些你不理解的结果,并用Solr的分析来玩弄它们
您应该在以下位置找到它:

/admin/analysis.jsp?highlight=on

或者打开结果突出显示以查看结果中实际匹配的内容

queryDebug will give you knowledge about why your scoring looks like it does (end how every field is relevant).
I will get some results that you are not understand and play with them with Solr's analysis
You should find it under:

/admin/analysis.jsp?highlight=on

Alternatively turn on highlighting over your results to see what is actually matching in your results

薄暮涼年 2025-01-15 21:48:03

Solr 查询充满了短参数,难以读取和修改,尤其是当参数太多时。
之后,调试和理解为什么一个文档比另一个文档或多或少相关就变得更加困难。调试解释输出通常是三个太大而无法放在一页中。

我发现这个 Google Chrome 扩展程序对于查看 Solr 查询解释和以清晰的方式进行调试。

Solr queries are full of short parameters, hard to read and modify, especially when the parameters are too many.
And after it is even harder to debug and understand why a document is more or less relevant than another. The debug explain output usually is a three too big to fit in one page.

I found this Google Chrome extension useful to see Solr Query explain and debug in a clear manner.

榆西 2025-01-15 21:48:03

对于那些仍然使用很旧版本的 solr 3.X 的人来说,“debugQuery=true”不会放置调试信息。您应该指定“debugQuery=on”。

For those who still use very old version of solr 3.X, "debugQuery=true" will not put the debug information. you should specify "debugQuery=on".

魔法少女 2025-01-15 21:48:03

有两种方法可以做到这一点。首先是查询级别,这意味着将 debugQuery=on 添加到您的查询中。这将包括一些内容:

  • 已解析的查询
  • 调试计时信息
  • 详细的评分信息,可帮助您分析给定文档评分的原因。

除此之外,您还可以使用 [explain] 转换器并将其添加到 fl 参数中。例如 ...&fl=*,[explain],这将导致您的文档将评分信息作为另一个字段。

评分信息可能非常广泛,并且将包括由相似性算法完成的计算。如果您想了解有关 Solr 中的相似性和评分算法的更多信息,请查看我和我的 Sematext 同事 Radu 在 Activate 会议上的演讲:https://www.youtube.com/watch?v=kKocQdYGVJM

There are two ways of doing that. First is the query level, which means adding the debugQuery=on to your query. That will include a few things:

  • parsed query
  • debug timing information
  • detailed scoring information which helps you with analysis of why a give document is given a score.

In addition to that, you can use the [explain] transformer and add it to your fl parameter. For example ...&fl=*,[explain], which will result in your documents having the scoring information as another field.

The scoring information can be quite extensive and will include calculations done by the similarity algorithm. If you would like to learn more about the similarities and the scoring algorithm in Solr, have a look at this my and my colleague Radu from Sematext talk from the Activate conference: https://www.youtube.com/watch?v=kKocQdYGVJM

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