擷取一個 OpenSearch 應用的版本列表。
介面說明
若已存在同名標準版應用,則建立新版本;
在建立版本情況下,autoSwitch 和 realtimeShared 也是必填的;
在建立版本情況下,quota 是自動從上一個版本繼承的;
在建立版本情況下,修改 quota 是無效的。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
opensearch:ListApp |
list |
*App
|
無 | 無 |
請求文法
GET /v4/openapi/app-groups/{appGroupIdentity}/apps HTTP/1.1
路徑參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| appGroupIdentity |
string |
是 |
應用程式名稱 |
my_app_group_name |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
當前API無需請求參數
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| requestId |
string |
請求 ID |
77CAA411-0010-4DB9-82E2-1C384E590AFF |
| result |
array<object> |
返回結果 |
|
|
array<object> |
版本資訊,參考: App |
{} |
|
| id |
string |
組 ID |
100302881 |
| isCurrent |
boolean |
是否是線上版本。 |
12333 |
| clusterName |
string |
叢集名稱 |
vpc_sh_domain_1 |
| autoSwitch |
boolean |
是否自動切換 |
true |
| type |
string |
應用類型
|
enhanced |
| description |
string |
描述 |
"" |
| status |
string |
版本狀態
|
normal |
| schema |
object |
應用結構 |
|
| tables |
object |
表結構。 |
|
| indexes |
object |
索引結構 |
|
| filterFields |
array |
屬性欄位 |
|
|
string |
屬性欄位 |
id |
|
| searchFields |
object |
索引欄位 |
|
| routeField |
string |
一級分欄欄位名稱 |
field1 |
| routeFieldValues |
array |
一級分欄欄位熱點值 |
|
|
string |
一級分欄欄位熱點值 |
routeFieldValues |
|
| secondRouteField |
string |
二級分欄欄位名稱(若且唯若配置有 routeFieldValues 時生效,預設使用寬表主鍵) |
field2 |
| ttlField |
object |
文檔清理配置 |
|
| name |
string |
文檔清理欄位 |
text1 |
| ttl |
integer |
存活時間(毫秒) |
1000 |
| indexSortConfig |
array<object> |
倒排索引配置 |
|
|
object |
倒排索引配置 |
||
| field |
string |
排序欄位 |
field1 |
| direction |
string |
排序方式
|
DESC |
| name |
string |
寬表表名 |
test |
| progressPercent |
integer |
資料匯入進度百分比(如 83 代表 83%) |
100 |
| fetchFields |
array |
預設展示欄位 |
|
|
string |
預設展示欄位 |
{} |
|
| quota |
object |
配額資訊 |
|
| spec |
string |
規格
|
opensearch.share.common |
| qps |
integer |
搜尋請求(單位:次/秒)(老計費模型使用) |
5 |
| docSize |
integer |
儲存容量(單位:GB) |
1 |
| computeResource |
integer |
計算資源(單位:LCU) |
20 |
| domain |
object |
行業類型
|
|
| category |
string |
類型-standard 標準版-advance 老進階版(新應用不支援此類型)-enhanced 新進階版 |
- |
| name |
string |
英文名稱 |
test |
| functions |
object |
搜尋結果 |
|
| service |
array |
功能 1 |
|
|
string |
功能 1 |
- |
|
| qp |
array |
資訊 1 |
|
|
string |
資訊 1 |
spellcheck |
|
| algo |
array |
結構 1 |
|
|
string |
結構 1 |
pop |
|
| schemas |
array<object> |
單表應用結構 |
|
|
array<object> |
單表應用結構 |
||
| tables |
object |
表結構 |
|
| indexes |
object |
索引結構 |
|
| filterFields |
array |
屬性欄位 |
|
|
string |
屬性欄位 |
field1 |
|
| searchFields |
object |
索引欄位 |
|
| routeField |
string |
一級分欄欄位名稱 |
field1 |
| routeFieldValues |
array |
一級分欄欄位熱點值 |
|
|
string |
一級分欄欄位熱點值 |
routeFieldValues |
|
| secondRouteField |
string |
二級分欄欄位名稱(若且唯若配置有 routeFieldValues 時生效,預設使用寬表主鍵) |
field2 |
| ttlField |
object |
文檔清理配置 |
|
| name |
string |
文檔時間欄位 |
fIeld1 |
| ttl |
integer |
存活時間(毫秒) |
1000 |
| indexSortConfig |
array<object> |
倒排索引配置 |
|
|
object |
倒排索引配置 |
||
| field |
string |
排序欄位 |
fIeld1 |
| direction |
string |
排序方式
|
DESC |
| name |
string |
寬表表名 |
main |
| firstRanks |
array<object> |
粗排配置 |
|
|
object |
粗排配置 |
||
| type |
string |
運算式類型 STRUCT 結構化, 預設值- STRING 自訂公式 |
STRING |
| name |
string |
粗排名稱 |
test |
| description |
string |
描述 |
描述 |
| active |
boolean |
是否是預設運算式 |
False |
| meta |
any |
運算式資訊(Array 或 String) |
String :"random()*100+now()"; Array: [ { "attribute": "static_bm25()", "arg": "", "weight": 10 } ] |
| secondRanks |
array<object> |
精排配置 |
|
|
object |
精排配置 |
||
| meta |
any |
精排運算式(可以編寫包含欄位、算分特徵和數學函數的運算式,實現複雜的排序邏輯) |
"cate_id > 0 and cate_id < 1000" |
| name |
string |
精排名稱 |
default |
| description |
string |
描述 |
描述 |
| active |
boolean |
是否是預設運算式 |
False |
| dataSources |
array<object> |
資料來源配置 |
|
|
array<object> |
資料來源配置 |
||
| tableName |
string |
應用表名 |
main |
| type |
string |
資料來源類型
|
rds |
| fields |
array<object> |
表欄位對應資訊 |
|
|
object |
表欄位對應資訊 |
||
| plugins |
object |
欄位資料處理外掛程式 外掛程式名稱(name)
外掛程式參數(parameters):
|
|
| keyField |
string |
主鍵 |
id |
| schemaName |
string |
寬表名稱 |
name |
| parameters |
object |
資料來源資訊 |
|
| summaries |
array<object> |
搜尋結果摘要配置 |
|
|
array<object> |
搜尋結果摘要配置 |
||
| name |
string |
分組名 |
fefault |
| meta |
array<object> |
摘要配置 |
|
|
object |
摘要配置 |
||
| field |
string |
欄位 |
field1 |
| len |
integer |
片段長度,取值區間:[1-300] |
50 |
| element |
string |
飄紅標籤 |
em |
| ellipsis |
string |
片段連結符 |
... |
| snippet |
string |
片段數量,取值區間:[1-5] |
5 |
| queryProcessors |
array<object> |
查詢意圖理解配置 |
|
|
array<object> |
查詢意圖理解配置 |
||
| name |
string |
規則名稱 |
test |
| domain |
string |
行業類型
|
GENERAL |
| category |
string |
行業垂類 |
"" |
| processors |
array<object> |
包含功能 |
|
|
object |
包含功能 |
||
| indexes |
array |
應用索引 |
|
|
string |
應用索引 |
default |
|
| active |
boolean |
是否預設規則 |
False |
| cluster |
object |
能力開放配置 |
|
| maxTimeoutMS |
integer |
叢集的逾時時間,單位是 ms |
750 |
| maxQueryClauseLength |
integer |
query 字句最大長度 |
1024 |
| interpretations |
object |
LLM 欄位模型 |
|
| prompts |
array<object> |
prompt 配置 |
|
|
object |
prompt 配置 |
樣本
正常返回樣本
JSON格式
{
"requestId": "77CAA411-0010-4DB9-82E2-1C384E590AFF",
"result": [
{
"id": "100302881",
"isCurrent": true,
"clusterName": "vpc_sh_domain_1",
"autoSwitch": true,
"type": "enhanced",
"description": "\"\"",
"status": "normal",
"schema": {
"tables": {
"test": "test",
"test2": 1
},
"indexes": {
"filterFields": [
"id"
],
"searchFields": {
"test": "test",
"test2": 1
}
},
"routeField": "field1",
"routeFieldValues": [
"routeFieldValues"
],
"secondRouteField": "field2\n",
"ttlField": {
"name": "text1\n",
"ttl": 1000
},
"indexSortConfig": [
{
"field": "field1",
"direction": "DESC"
}
],
"name": "test"
},
"progressPercent": 100,
"fetchFields": [
"{}"
],
"quota": {
"spec": "opensearch.share.common",
"qps": 5,
"docSize": 1,
"computeResource": 20
},
"domain": {
"category": "-",
"name": "test",
"functions": {
"service": [
"-"
],
"qp": [
"spellcheck"
],
"algo": [
"pop"
]
}
},
"schemas": [
{
"tables": {
"test": "test",
"test2": 1
},
"indexes": {
"filterFields": [
"field1"
],
"searchFields": {
"test": "test",
"test2": 1
}
},
"routeField": "field1\n",
"routeFieldValues": [
"routeFieldValues"
],
"secondRouteField": "field2",
"ttlField": {
"name": "fIeld1",
"ttl": 1000
},
"indexSortConfig": [
{
"field": "fIeld1",
"direction": "DESC"
}
],
"name": "main"
}
],
"firstRanks": [
{
"type": "STRING",
"name": "test",
"description": "描述",
"active": true,
"meta": "String :\"random()*100+now()\";\nArray: [\n {\n \"attribute\": \"static_bm25()\",\n \"arg\": \"\",\n \"weight\": 10\n }\n ]"
}
],
"secondRanks": [
{
"meta": "\"cate_id > 0 and cate_id < 1000\"\n",
"name": "default\n",
"description": "描述",
"active": true
}
],
"dataSources": [
{
"tableName": "main",
"type": "rds",
"fields": [
{
"test": "test",
"test2": 1
}
],
"plugins": {
"test": "test",
"test2": 1
},
"keyField": "id",
"schemaName": "name",
"parameters": {
"test": "test",
"test2": 1
}
}
],
"summaries": [
{
"name": "fefault",
"meta": [
{
"field": "field1",
"len": 50,
"element": "em",
"ellipsis": "...",
"snippet": "5"
}
]
}
],
"queryProcessors": [
{
"name": "test",
"domain": "GENERAL",
"category": "\"\"",
"processors": [
{
"test": "test",
"test2": 1
}
],
"indexes": [
"default"
],
"active": true
}
],
"cluster": {
"maxTimeoutMS": 750,
"maxQueryClauseLength": 1024
},
"interpretations": {
"test": "test",
"test2": 1
},
"prompts": [
{
"test": "test",
"test2": 1
}
]
}
]
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。