檢視一個 OpenSearch 應用程式版本詳情。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
opensearch:DescribeApp |
get |
*App
|
無 | 無 |
請求文法
GET /v4/openapi/app-groups/{appGroupIdentity}/apps/{appId} HTTP/1.1
路徑參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| appGroupIdentity |
string |
是 |
應用程式名稱。 |
my_app_group_name |
| appId |
integer |
是 |
版本 ID。 |
110116134 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
當前API無需請求參數
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
回應體。 |
{} |
|
| requestId |
string |
請求 ID。 |
33477D76-C380-1D84-A4AD-043F52876CB1 |
| result |
object |
版本資訊。 |
{} |
| id |
string |
版本 ID。 |
100303063 |
| isCurrent |
boolean |
是否為線上版本。 |
True |
| clusterName |
string |
叢集名稱。 |
- |
| autoSwitch |
boolean |
是否自動切換。 |
true |
| type |
string |
版本類型
|
enhanced |
| status |
string |
版本狀態。
|
ok |
| realtimeShared |
boolean |
是否共享即時串流。 |
|
| schema |
object |
應用程式結構。 |
{} |
| tables |
object |
資料表結構。 |
{ "primaryTable": true, "name": "main", "fields": { "id": { "name": "id", "type": "LITERAL", "primaryKey": true }, "title": { "name": "title", "type": "TEXT", "primaryKey": false }, "buy": { "name": "buy", "type": "INT", "primaryKey": false }, "cate_id": { "name": "cate_id", "type": "INT", "primaryKey": false }, "cate_name": { "name": "cate_name", "type": "LITERAL", "primaryKey": false } } } |
| indexes |
object |
索引結構。 |
|
| filterFields |
array |
屬性欄位集合。 |
|
|
string |
屬性欄位。 |
id |
|
| searchFields |
object |
索引欄位。 |
{ "fields": ["title"], "analyzer": "chn_standard" } |
| 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 |
預設顯示欄位。 |
{} |
|
| quota |
object |
配額資訊。 |
{} |
| spec |
string |
規格。
|
opensearch.share.common |
| qps |
integer |
搜尋請求(單位:次/秒)(舊計費模型使用) |
5 |
| docSize |
integer |
儲存容量(單位:GB) |
1 |
| computeResource |
integer |
運算資源(單位:LCU) |
20 |
| domain |
object |
產業類型
|
GENERAL |
| category |
string |
類型-standard 標準版-advance 舊進階版(新應用程式不支援此類型)-enhanced 新進階版。 |
- |
| name |
string |
英文名稱。 |
test |
| functions |
object |
搜尋結果。 |
{} |
| service |
array |
各項功能說明。 |
[] |
|
string |
功能 1 |
- |
|
| qp |
array |
版面配置資訊。 |
[] |
|
string |
資訊 1 |
- |
|
| algo |
array |
演算法結構。 |
[] |
|
string |
結構 1 |
- |
|
| schemas |
array<object> |
多資料表應用程式結構。 |
|
|
array<object> |
單資料表應用程式結構。 |
||
| tables |
object |
資料表結構。 |
{ "primaryTable": true, "name": "main", "fields": { "id": { "name": "id", "type": "LITERAL", "primaryKey": true }, "title": { "name": "title", "type": "TEXT", "primaryKey": false }, "buy": { "name": "buy", "type": "INT", "primaryKey": false }, "cate_id": { "name": "cate_id", "type": "INT", "primaryKey": false }, "cate_name": { "name": "cate_name", "type": "LITERAL", "primaryKey": false } } } |
| indexes |
object |
索引結構。 |
|
| filterFields |
array |
屬性欄位集合。 |
|
|
string |
屬性欄位。 |
field1 |
|
| searchFields |
object |
索引欄位。 |
{ "fields": ["title"], "analyzer": "chn_standard" } |
| 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 |
粗排運算式建立時間戳記。 |
0 |
| updated |
integer |
粗排運算式更新時間戳記。 |
0 |
| 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 |
精排表達式建立時間戳記。 |
0 |
| updated |
integer |
精排表達式更新時間戳記。 |
0 |
| dataSources |
array<object> |
資料來源配置。 |
|
|
array<object> |
資料來源配置。 |
||
| tableName |
string |
應用資料表名稱。 |
main |
| type |
string |
資料來源類型。
|
rds |
| fields |
array<object> |
資料表欄位對應資訊。 |
|
|
object |
資料表欄位對應資訊。 |
{ "id": "id" } |
|
| plugins |
object |
欄位資料處理外掛程式。 外掛程式名稱(name)
外掛程式參數(parameters):
|
{ "name": "JsonKeyValueExtractor", "parameters": { "key": "my_field" } } |
| keyField |
string |
主鍵。 |
id |
| schemaName |
string |
寬表名稱。 |
name |
| parameters |
object |
資料來源資訊。 |
{ "instanceId": "rds-instance-id", "dbName": "my_db", "dbTableName": "my_table", "dbUser": "my", "dbPassword": "my_passwd", "filter":"", "autoSync": true } |
| summaries |
array<object> |
搜尋結果摘要配置。 |
|
|
array<object> |
搜尋結果摘要配置。 |
||
| name |
string |
群組名稱。 |
default |
| 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 |
包含功能。 |
{ "name": "stop_word", "useSystemDictionary": true, "interventionDictionary": "my_dict", "ignoreSpace": true } |
|
| indexes |
array |
應用的索引範圍。 |
|
|
string |
應用索引。 |
default |
|
| active |
boolean |
是否為預設規則。 |
False |
| interpretations |
array<object> |
LLM 欄位模型。 |
[ { "table": "table1", "fields": [ { "name": "field1", "interpretation": "Title" }, { "name": "field2", "interpretation": "ID" } ] } ] |
|
object |
LLM 資料表欄位描述。 |
||
| prompts |
array<object> |
LLM prompt 配置。 |
|
|
object |
prompt 配置。 |
{ "parameters" : [ { "name" : "docs", "value" : "Concatenation method for doc content, such as the current qwen ' |
|
| created |
integer |
版本建立時間戳記。 |
1590977140 |
| virtualCluster |
string |
虛擬叢集名稱。 |
vc-1 |
| description |
string |
版本描述。 |
- |
| switchTime |
integer |
切換上線時間。 |
0 |
| cluster |
object |
能力開放配置。 |
|
| maxTimeoutMS |
integer |
叢集的逾時時間,單位為 ms。 |
750 |
| maxQueryClauseLength |
integer |
query 字句最大長度。 |
1024 |
| 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 |
| vectorIndexConfigs |
array<object> |
獨享型向量索引進階配置。 |
|
|
object |
獨享型向量索引進階配置項目。 |
||
| configItems |
array<object> |
配置項目清單。 |
|
|
object |
配置項目。 |
||
| progressPercent |
integer |
資料匯入進度百分比(如 83 代表 83%)。 |
100 |
樣本
正常返回樣本
JSON格式
{
"requestId": "33477D76-C380-1D84-A4AD-043F52876CB1",
"result": {
"id": "100303063",
"isCurrent": true,
"clusterName": "-",
"autoSwitch": true,
"type": "enhanced",
"status": "ok",
"realtimeShared": false,
"schema": {
"tables": {
"primaryTable": true,
"name": "main",
"fields": {
"id": {
"name": "id",
"type": "LITERAL",
"primaryKey": true
},
"title": {
"name": "title",
"type": "TEXT",
"primaryKey": false
},
"buy": {
"name": "buy",
"type": "INT",
"primaryKey": false
},
"cate_id": {
"name": "cate_id",
"type": "INT",
"primaryKey": false
},
"cate_name": {
"name": "cate_name",
"type": "LITERAL",
"primaryKey": false
}
}
},
"indexes": {
"filterFields": [
"id"
],
"searchFields": {
"fields": [
"title"
],
"analyzer": "chn_standard"
}
},
"routeField": "field1",
"routeFieldValues": [
"routeFieldValues"
],
"secondRouteField": "field2\n",
"ttlField": {
"name": "text1\n",
"ttl": 1000
},
"indexSortConfig": [
{
"field": "field1",
"direction": "DESC"
}
],
"name": "test"
},
"fetchFields": [
"{}"
],
"quota": {
"spec": "opensearch.share.common",
"qps": 5,
"docSize": 1,
"computeResource": 20
},
"domain": {
"category": "-",
"name": "test",
"functions": {
"service": [
"-"
],
"qp": [
"-"
],
"algo": [
"-"
]
}
},
"schemas": [
{
"tables": {
"primaryTable": true,
"name": "main",
"fields": {
"id": {
"name": "id",
"type": "LITERAL",
"primaryKey": true
},
"title": {
"name": "title",
"type": "TEXT",
"primaryKey": false
},
"buy": {
"name": "buy",
"type": "INT",
"primaryKey": false
},
"cate_id": {
"name": "cate_id",
"type": "INT",
"primaryKey": false
},
"cate_name": {
"name": "cate_name",
"type": "LITERAL",
"primaryKey": false
}
}
},
"indexes": {
"filterFields": [
"field1"
],
"searchFields": {
"fields": [
"title"
],
"analyzer": "chn_standard"
}
},
"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": 0,
"updated": 0
}
],
"secondRanks": [
{
"meta": "\"cate_id > 0 and cate_id < 1000\"\n",
"name": "default\n",
"description": "描述",
"active": true,
"isDefault": false,
"created": 0,
"updated": 0
}
],
"dataSources": [
{
"tableName": "main",
"type": "rds",
"fields": [
{
"id": "id"
}
],
"plugins": {
"name": "JsonKeyValueExtractor",
"parameters": {
"key": "my_field"
}
},
"keyField": "id",
"schemaName": "name",
"parameters": {
"instanceId": "rds-instance-id",
"dbName": "my_db",
"dbTableName": "my_table",
"dbUser": "my",
"dbPassword": "my_passwd",
"filter": "",
"autoSync": true
}
}
],
"summaries": [
{
"name": "default",
"meta": [
{
"field": "field1",
"len": 50,
"element": "em",
"ellipsis": "...",
"snippet": "5"
}
]
}
],
"queryProcessors": [
{
"name": "test",
"domain": "GENERAL",
"category": "\"\"",
"processors": [
{
"name": "stop_word",
"useSystemDictionary": true,
"interventionDictionary": "my_dict",
"ignoreSpace": true
}
],
"indexes": [
"default"
],
"active": true
}
],
"interpretations": [
{
"test": "test",
"test2": 1
}
],
"prompts": [
{
"parameters": [
{
"name": "docs",
"value": "The concatenation method for doc content, such as the current qwen '\n${doc}\n\n"
}
],
"messages": [
{
"role": "role_name. Is it necessary to restrict it to only system, user, assistant, or can users fill it in freely?",
"content": "The prompt content set by the user, where ${parameter_key} can be used to represent the content expected to be dynamically replaced. For specific replacement rules, refer to the instructions below."
}
]
}
],
"created": 1590977140,
"virtualCluster": "vc-1",
"description": "-",
"switchTime": 0,
"cluster": {
"maxTimeoutMS": 750,
"maxQueryClauseLength": 1024,
"chunkModels": [
{
"test": "test",
"test2": 1
}
],
"imageContentRecognizerModels": [
{
"test": "test",
"test2": 1
}
],
"textEmbeddingModel": "ops-text-embedding-002",
"textSparseEmbeddingModel": "ops-text-sparse-embedding-001",
"vectorIndexConfigs": [
{
"test": "test",
"test2": 1
}
]
},
"configItems": [
{
"test": "test",
"test2": 1
}
],
"progressPercent": 100
}
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。