问题描述
我正在创建一个Azure搜索评分配置文件.在我的数据集中,我有一个名为 ExpiresOn
的 Edm.DateTimeOffset
字段.我正在使用此字段来升级某些文档.为此,我使用了如下的新鲜度功能:
I am creating an Azure Search scoring profile. In my data set, I have an Edm.DateTimeOffset
field called ExpiresOn
. I'm using this field to promote certain documents. To do that, I'm using the freshness function like this:
"name": "Aging",
"functions": [
{
"type": "freshness",
"fieldName": "ExpiresOn",
"boost": 10,
"interpolation": "quadratic",
"freshness": {
"boostingDuration": "P14D"
}
},
}
据我了解,此评分资料将在接下来的14天内推广具有 ExpiresOn
值的记录.新"项将具有更大的相关性.我的问题是,如果我要宣传较旧"或较旧"的商品该怎么办.有办法吗?
From my understanding, this scoring profile will promote records that have an ExpiresOn
value within the next 14 days. The "fresher" items will be given more relevance. My question is, what if I want to promote "staler" or "older" items. Is there a way to do that?
推荐答案
要促销旧商品,您实际上是在降级新商品.您可以通过提供一个大于零但小于1(例如0.5)的增强因子来实现此目的.可以在此处找到.
To promote older items, you actually demote newer items. You can do this by providing a boost factor that is greater than zero, but less than one (0.5 for example). Details can be found here.
这篇关于Azure搜索-促进旧数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!