本文主要介绍了OpenSearch应用版本的粗排信息。
示例
{
"name": "default",
"description": "",
"active": true,
"type": "STRUCT",
"meta": [
{
"attribute": "static_bm25()",
"arg": "",
"weight": 10
}
]
}
{
"name": "my_demo",
"description": "",
"active": false,
"type": "STRING",
"meta": "random()*100+now()"
}
结构
名称 | 类型 | 描述 |
name | String | 名称。 |
description | String | 描述。 |
active | Boolean | 是否是默认表达式。 |
type | String | 表达式类型- STRUCT 结构化,默认值- STRING 自定义公式。 |
meta | Array 或 String | 表达式信息。 |
type=STRUCT 时 meta
名称 | 类型 | 描述 |
[].attribute | String | 属性,搜索字段可用的算分特征参考基础排序。 |
[].arg | String | 表达式函数参考基础排序。 |
[].weight | Number | 权重取值范围:-100000~100000非0值。 |
该文章对您有帮助吗?