更新时间:2020-12-25 17:24
修改一个 opensearch 应用版本的粗排表达式配置当 dryRun=true 时,表示修改后的粗排表达式进行校验,默认 dryRun 不传为 false
PUT
/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/first-ranks/[name]?dryRun=true|false
字段 | 类型 | 是否必要 | 示例值 | 描述 |
---|---|---|---|---|
appGroupIdentity | String | 是 | “my_app_group_name” | 应用名称 |
appId | String | 是 | “110157886” | 版本号 |
name | String | 是 | “test” | 粗排表达式名称 |
字段 | 类型 | 是否必要 | 示例值 | 描述 |
---|---|---|---|---|
dryRun | Boolean | 否 | true | 是否为空运行请求 |
字段 | 类型 | 是否必要 | 示例值 | 描述 |
---|---|---|---|---|
type | String | 是 | “STRUCT” | 表达式类型 - STRUCT 结构化,默认值 - STRING 自定义公式 |
meta | Array 或 String | 是 | 表达式信息 | |
description | String | 否 | “my_test” | 描述 |
active | Boolean | 否 | true | 是否是默认表达式 |
参考:FirstRank
字段 | 类型 | 描述 |
---|---|---|
requestId | String | 请求ID |
result | Object | 粗排表达式信息 参考:FirstRank |
PUT /v4/openapi/app-groups/os_function_test_v1/apps/150024378/first-ranks/ar_wear_edit_time
{
"type": "STRUCT",
"meta": [
{
"attribute": "timeliness_ms()",
"arg": "ar_edit_time",
"weight": 1
}
],
"description": "",
"active": false
}
正确返回
{
"requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",
"result": {
"name": "ar_wear_edit_time",
"type": "STRUCT",
"meta": [
{
"attribute": "timeliness_ms()",
"arg": "ar_edit_time",
"weight": 1
}
],
"description": "",
"active": false,
"created": 0,
"updated": 0
}
}
错误返回参考:响应结构
在文档使用中是否遇到以下问题
更多建议
匿名提交