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