Solr可以对其精彩片段进行排名吗?

发布于 2025-02-13 07:51:46 字数 90 浏览 1 评论 0 原文

Solr将提供与我在HL.Snippets中指定的尽可能多的亮点,并给出亮点列表。我想要的是一组(2或3)突出显示最适合查询的片段。有这样做的天生索尔功能中是否存在?

Solr will give as many highlights as I specify in hl.snippets, giving a list of highlights. What I want is the set of (2 or 3) highlight snippets that best match the query. Is there in innate Solr feature that does this?

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

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

发布评论

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

评论(1

薄情伤 2025-02-20 07:51:46

如何为返回的亮点评分。它默认情况下应该已经进行了一些评分,因此,第一个任务是如果不使用的话,将切换到统一荧光笔。

然后,您可以调整如何使用BM25来评分返回的亮点:

hl.score.k1 [可选] [默认值:1.2]

指定BM25项频率归一化参数'k1'。例如,可以将其设置为0,仅根据匹配的查询项数量排名。

hl.score.b [可选] [默认值:0.75]

指定BM25长度归一化参数'b'。例如,可以将其设置为“ 0”,以完全忽略排名时的段落。

hl.score.pivot [可选] [默认值:87]

指定字符的平均段落长度。

The Unified Highlighter allows you to tell it how it should score the returned highlights. It should already do some scoring by default, so the first task would be switch to the unified highlighter if you're not using that.

You can then tweak how it uses BM25 to score the returned highlights:

hl.score.k1 [Optional] [Default: 1.2]

Specifies BM25 term frequency normalization parameter 'k1'. For example, it can be set to 0 to rank passages solely based on the number of query terms that match.

hl.score.b [Optional] [Default: 0.75]

Specifies BM25 length normalization parameter 'b'. For example, it can be set to "0" to ignore the length of passages entirely when ranking.

hl.score.pivot [Optional] [Default: 87]

Specifies BM25 average passage length in characters.

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