删除指定 OpenSearch 应用版本的粗排配置
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求头
该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。
请求语法
DELETE /v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/first-ranks/[name] HTTP/1.1
请求参数
名称 | 类型 | 位置 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|---|
appGroupIdentity | String | Path | 是 | “my_app_group_name” |
应用名称 |
appId | Integer | Path | 是 | 110157886 |
版本号 |
name | String | Path | 是 | “test” |
粗排表达式名称 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
requestId | String | E676FAB6-A0AC-64D9-F9D7-D0D33C930CFF |
请求ID |
result | Struct |
粗排表达式信息 |
|
active | Boolean | true |
是否是默认表达式 |
description | String | "" |
描述 |
meta | Array of metaItem |
表达式信息 |
|
arg | String | "" |
表达式函数参数 参考:基础排序 |
attribute | String | static_bm25() |
属性,算分特征或搜索字段 可用的算分特征,参考:基础排序 |
weight | Float | 10 |
权重 取值范围:-100000~100000非0值 |
name | String | default |
名称 |
示例
请求示例
DELETE /v4/openapi/app-groups/os_function_test_v1/apps/110157886/first-ranks/test_gmt
正常返回示例
XML
格式
<requestId>E676FAB6-A0AC-64D9-F9D7-D0D33C930CFF</requestId>
<result>
<name>test2</name>
<description/>
<active>false</active>
<type>STRUCT</type>
<meta>
<attribute>timeliness()</attribute>
<arg>hid</arg>
<weight>1</weight>
</meta>
<created>1587708467</created>
<updated>1587708467</updated>
</result>
JSON
格式
{
"requestId": "E676FAB6-A0AC-64D9-F9D7-D0D33C930CFF",
"result": {
"name": "test2",
"description": "",
"active": false,
"type": "STRUCT",
"meta": {
"attribute": "timeliness()",
"arg": "hid",
"weight": 1
},
"created": 1587708467,
"updated": 1587708467
}
}
错误码
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交