Azure搜索配置文件中的负面提升 [英] Negative boost in Azure Search Profiles

查看:98
本文介绍了Azure搜索配置文件中的负面提升的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们一直在努力为搜索创建得分配置文件.我们需要一种在某些类型的评分函数"Magnitude","Freshness","Tags"的情况下掩埋"或对某些字段进行负"增强的方法.我们注意到我们不能为升压添加负值.是否有其他方法可以实现这种行为(根据字段掩埋结果) 我们不能使用$ OrderBy,因为它优先于评分配置文件.

We have been working on creating scoring profiles for our search. We need a way to "bury" or give "negative" boosts to some fields in case of types of scoring function "Magnitude", "Freshness", "Tags". We noticed that we cannot add a negative value for boost. Is there any other way to achieve this kind of behavior (burying results based the field) We cannot use $OrderBy because it takes precedence over the scoring profile.

请告知.谢谢!

推荐答案

我通过为要掩埋的字段创建负值(使用INT字段)解决了该情况.这给了我们所需的负面推动.

I resolved that scenario by creating negative values (using an INT field) for the field we wanted to bury. That gave us the negative boost we needed.

我对日期新鲜度"也使用了类似的技术,其中我们计算了某个事件发生的天数,数值越高,日期的新鲜度越低,并使用幅度"功能.

I used a similar technique for Date "Freshness" too, where we counted the days from some event and the higher the number the less fresh the date is and used a "magnitude" function for it.

谢谢!

这篇关于Azure搜索配置文件中的负面提升的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆