Warm tip: This article is reproduced from serverfault.com, please click

Negative boost in Azure Search Profiles

发布于 2018-06-18 19:30:50

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.

Please advise. Thanks!

Questioner
Zekokhan
Viewed
0
29.8k 2018-07-24 04:04:00

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.

Thanks!