描述
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值 |