建立一個查詢分析規則。當 dryRun=true 時,表示進行查詢分析規則校正,預設 dryRun 不傳為 false。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
opensearch:WriteQueryProcessor |
*QueryProcessor
|
無 | 無 |
請求文法
POST /v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/query-processors HTTP/1.1
路徑參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| appGroupIdentity |
string |
是 |
應用程式名稱 |
my_app_group_name |
| appId |
integer |
是 |
版本號碼 |
110157886 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| dryRun |
boolean |
否 |
是否為空白運行請求 |
true |
| body |
any |
否 |
請求體 |
{} |
請求體
| 欄位 | 類型 | 是否必要 | 樣本值 | 描述 |
| name | String | 是 | "test" | 規則名稱 |
| processors[] | Object | 是 | -- | 分析規則 參考: Processor |
| domain | String | 否 | "GENERAL" | 行業類型 - GENERAL 通用行業 - ECOMMERCE 電商 - IT_CONTENT IT 行業 |
| indexes | Array | 否 | ["default"] | 應用的索引範圍 |
| active | Boolean | 否 | true | 是否設定為有效 |
參考: QueryProcessor
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| requestId |
string |
請求 ID |
0A6EB64B-B4C8-CF02-810F-E660812972FF |
| result |
object |
規則資訊 |
|
| created |
integer |
建立時間 |
1587398402 |
| active |
boolean |
是否預設規則 |
true |
| updated |
integer |
更新時間 |
1587398402 |
| name |
string |
規則名稱 |
query_filter |
| domain |
string |
行業類型
|
GENERAL |
| indexes |
array |
應用的索引範圍 |
|
|
string |
應用的索引範圍 |
"default" |
|
| processors |
array<object> |
包含功能 具體說明查看下文: Processor |
|
|
object |
包含功能 |
{} |
樣本
正常返回樣本
JSON格式
{
"requestId": "0A6EB64B-B4C8-CF02-810F-E660812972FF",
"result": {
"created": 1587398402,
"active": true,
"updated": 1587398402,
"name": "query_filter",
"domain": "GENERAL",
"indexes": [
"\"default\""
],
"processors": [
{}
]
}
}
錯誤碼
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。