取得一個 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 |
| autoSwitch |
boolean |
是否自動切換。 |
true |
| type |
string |
應用類型。
|
enhanced |
| description |
string |
描述。 |
"" |
| status |
string |
版本狀態。
|
normal |
| realtimeShared |
boolean |
是否共享即時串流。 |
|
| 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 |
| fetchFields |
array |
預設展示欄位。 |
|
|
string |
預設展示欄位。 |
{} |
|
| 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 } ] |
| created |
integer |
粗排運算式建立時間戳記。 |
1590977140 |
| updated |
integer |
粗排運算式更新時間戳記。 |
1590977140 |
| secondRanks |
array<object> |
精排設定。 |
|
|
object |
精排設定。 |
||
| meta |
any |
精排運算式(可以編寫包含欄位、計分特徵和數學函數的運算式,實現複雜的排序邏輯)。 |
"cate_id > 0 and cate_id < 1000" |
| name |
string |
精排名稱。 |
default |
| description |
string |
描述。 |
描述 |
| active |
boolean |
是否為預設運算式。 |
False |
| isDefault |
boolean |
是否為預設精排運算式。 |
|
| created |
integer |
精排運算式建立時間戳記。 |
1593679894 |
| updated |
integer |
精排運算式更新時間戳記。 |
1593679894 |
| 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 |
| prompts |
array<object> |
prompt 設定。 |
|
|
object |
prompt 設定。 |
||
| cluster |
object |
能力開放設定。 |
|
| maxTimeoutMS |
integer |
叢集的逾時時間,單位是 ms。 |
750 |
| maxQueryClauseLength |
integer |
query 子句最大長度。 |
1024 |
| vectorIndexConfigs |
array<object> |
獨享型向量索引進階設定。 |
|
|
object |
獨享型向量索引進階設定項目。 |
||
| chunkModels |
array<object> |
用於指定 LLM 應用版本使用的切片方式。 |
|
|
object |
切片方式設定項目。 |
||
| imageContentRecognizerModels |
array<object> |
用於指定 LLM 應用版本使用的圖片內容辨識模型。 |
|
|
object |
圖片內容辨識模型設定項目。 |
||
| textEmbeddingModel |
string |
用於指定 LLM 應用版本使用的文字向量化模型。 |
ops-text-embedding-002 |
| textSparseEmbeddingModel |
string |
用於指定 LLM 應用版本使用的稀疏向量模型。 |
ops-text-sparse-embedding-001 |
| interpretations |
array<object> |
LLM 欄位模型。 |
|
|
object |
LLM 資料表欄位描述。 |
||
| configItems |
array<object> |
設定項目清單。 |
|
|
object |
設定項目。 |
||
| switchTime |
integer |
切換上線時間。 |
0 |
| quota |
object |
配額資訊。 |
|
| usedQps |
integer |
已使用的搜尋請求次數(舊計費模型)。 |
100 |
| qps |
integer |
搜尋請求(單位:次/秒)(舊計費模型使用)。 |
5 |
| usedDocSize |
integer |
已使用的儲存容量。 |
1024 |
| docSize |
integer |
儲存容量(單位:GB)。 |
1 |
| usedComputeResource |
integer |
已使用的運算資源。 |
100 |
| computeResource |
integer |
運算資源(單位:LCU)。 |
20 |
| spec |
string |
規格。
|
opensearch.share.common |
| progressPercent |
integer |
資料匯入進度百分比(如 83 代表 83%)。 |
100 |
| updated |
integer |
應用版本最後更新時間戳記。 |
1234567891 |
| created |
integer |
版本建立時間戳記。 |
1590486119 |
樣本
正常返回樣本
JSON格式
{
"requestId": "77CAA411-0010-4DB9-82E2-1C384E590AFF",
"result": [
{
"id": "100302881",
"isCurrent": true,
"autoSwitch": true,
"type": "enhanced",
"description": "\"\"",
"status": "normal",
"realtimeShared": false,
"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"
},
"fetchFields": [
"{}"
],
"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 ]",
"created": 1590977140,
"updated": 1590977140
}
],
"secondRanks": [
{
"meta": "\"cate_id > 0 and cate_id < 1000\"\n",
"name": "default\n",
"description": "描述",
"active": true,
"isDefault": false,
"created": 1593679894,
"updated": 1593679894
}
],
"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
}
],
"prompts": [
{
"test": "test",
"test2": 1
}
],
"cluster": {
"maxTimeoutMS": 750,
"maxQueryClauseLength": 1024,
"vectorIndexConfigs": [
{
"test": "test",
"test2": 1
}
],
"chunkModels": [
{
"test": "test",
"test2": 1
}
],
"imageContentRecognizerModels": [
{
"test": "test",
"test2": 1
}
],
"textEmbeddingModel": "ops-text-embedding-002",
"textSparseEmbeddingModel": "ops-text-sparse-embedding-001"
},
"interpretations": [
{
"test": "test",
"test2": 1
}
],
"configItems": [
{
"test": "test",
"test2": 1
}
],
"switchTime": 0,
"quota": {
"usedQps": 100,
"qps": 5,
"usedDocSize": 1024,
"docSize": 1,
"usedComputeResource": 100,
"computeResource": 20,
"spec": "opensearch.share.common"
},
"progressPercent": 100,
"updated": 1234567891,
"created": 1590486119
}
]
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。