查看一个 OpenSearch 应用版本的粗排表达式配置
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求头
该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。
请求语法
GET /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 | 0A6EB64B-B4C8-CF02-810F-E660812972FF |
请求ID |
result | Struct |
粗排表达式信息 |
|
active | Boolean | false |
是否是默认表达式 |
description | String | - |
描述 |
meta | Array of metaItem |
表达式信息 |
|
arg | String | ar_edit_time |
表达式函数参数 |
attribute | String | timeliness_ms() |
属性,算分特征或搜索字段 |
weight | Float | 1 |
权重 取值范围:-100000~100000非0值 |
name | String | ar_wear_edit_time |
名称 |
示例
请求示例
GET /v4/openapi/app-groups/os_function_test_v1/apps/150024378/first-ranks/ar_wear_edit_time
正常返回示例
XML
格式
<requestId>0A6EB64B-B4C8-CF02-810F-E660812972FF</requestId>
<result>
<name>ar_wear_edit_time</name>
<type>STRUCT</type>
<meta>
<attribute>timeliness_ms()</attribute>
<arg>ar_edit_time</arg>
<weight>1</weight>
</meta>
<description/>
<active>false</active>
<created>0</created>
<updated>0</updated>
</result>
JSON
格式
{
"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
}
}
错误码
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交