自适应搜索提升规则

发布于 2025-01-18 09:41:20 字数 550 浏览 4 评论 0原文

smb 是否可以帮助我理解自适应搜索增强规则机制?或者给一些笔记供阅读。主要问题是添加 boost 规则后,它添加到 searchQuery 没有问题,但在最终查询中没有任何 boost ?我应该怎么做才能将其添加到查询中?

{!edismax tie=0.0}(( (masterBrandNameSearchText_text_nl_be:armani)^1 (masterBrandNameSearchText_text_nl_be:armani*)^0.2 (masterBrandNameSearchText_text_nl_be:*armani)^0.2 (masterBrandNameSearchText_text_nl_be:armani~0.7)^0.1 ((masterBrandNameSearchText_text_nl_be_st:armani)^1)^0.5)^30

在此处输入图片描述

我不知道添加此提升的正确方法是什么?

我认为这些提升规则应该添加到最终查询中吗?

If smb could help me to understand Adaptive Search Boost Rules mechanism? Or give some notes to read. The main problem that after adding boost rule it's added to searchQuery with no problems, but in final query there are no any boost? What should I do to add it to query?

{!edismax tie=0.0}(( (masterBrandNameSearchText_text_nl_be:armani)^1 (masterBrandNameSearchText_text_nl_be:armani*)^0.2 (masterBrandNameSearchText_text_nl_be:*armani)^0.2 (masterBrandNameSearchText_text_nl_be:armani~0.7 )^0.1 ((masterBrandNameSearchText_text_nl_be_st:armani)^1)^0.5)^30

enter image description here

I have no idea what way is right to add this boost

Am I right that those boost rule should be added to final query?

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

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

发布评论

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

评论(1

游魂 2025-01-25 09:41:20

问题在于,在我们的项目中,隐式使用了 legacyfacetsearchstrategy 。
因此,提出了自适应搜索的功能,但也没有起作用。

为了解决问题,我们在构建查询的最后一步中添加了其他查询。当我们被使用时

{!edismax tie=0.0}defaultQuery    
boost=product(query((field:value)^00)) - field, value, boostFactor - params were taken from boost rule

The problem was, that on our project LegacyFacetSearchStrategy was used implicitly.
So the functions of Adaptive Search were presented, but were not worked as well.

To solve the problem we added additional query on the last step of building the query. As we were used eDisMax qParser template was as:

{!edismax tie=0.0}defaultQuery    
boost=product(query((field:value)^00)) - field, value, boostFactor - params were taken from boost rule
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文