Azure搜索-促进旧数据 [英] Azure Search - Promoting Older Data

查看:43
本文介绍了Azure搜索-促进旧数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个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搜索-促进旧数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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