Modifies a query analysis rule for a specific application version. If you set the dryRun parameter to true, this operation checks the specified query analysis rule. If you do not specify the dryRun parameter, the default value is false.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
opensearch:WriteQueryProcessor |
*QueryProcessor
|
None | None |
Request syntax
PUT /v4/openapi/app-groups/{appGroupIdentity}/apps/{appId}/query-processors/{name} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| appGroupIdentity |
string |
Yes |
The name of the application. |
“my_app_group_name” |
| appId |
integer |
Yes |
The version number of the application. |
110157886 |
| name |
string |
Yes |
The name of the rule. |
“test” |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| dryRun |
boolean |
No |
Specifies whether to perform a dry run. |
true |
| body |
any |
No |
The request body. |
{ "domain": "GENERAL", "category": "", "processors": [ { "name": "synonym", "useSystemDictionary": true }, { "name": "stop_word", "useSystemDictionary": true } ] } |
Request body
| Parameter | Type | Required | Example | Description |
| domain | String | No | "GENERAL" | The industry to which the query analysis rule applies.Valid values: - GENERAL: General - ECOMMERCE: E-commerce - IT_CONTENT: IT content |
| indexes | Array | No | ["default"] | The indexes to which the query analysis rule applies. |
| processors[] | Object | No | The analysis rule. For more information, see Processor | |
| active | Boolean | No | true | Specifies whether to set the rule to active. |
For more information, see QueryProcessor.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
{} |
|
| requestId |
string |
The request ID. |
D77D0DAF-790D-F5F5-A9C0-133738165014 |
| result |
object |
The information about the rule. |
{} |
| created |
integer |
The time when the rule was created. |
0 |
| active |
boolean |
Indicates whether the rule is a default rule. |
true |
| updated |
integer |
The time when the rule was updated. |
1 |
| name |
string |
The name of the rule. |
synonym |
| domain |
string |
The industry to which the query analysis rule applies. Valid values:
|
GENERAL |
| indexes |
array |
The indexes to which the query analysis rule applies. |
["default"] |
|
string |
The indexes to which the query analysis rule applies. |
[ "default" ] |
|
| processors |
array<object> |
The analysis rule. |
[] |
|
object |
The data returned in the response. |
[ "default" ] |
Response parameters
| Parameter | Type | Description |
| requestId | String | The request ID. |
| result | Object | The information about the rule. For more information, see QueryProcessor |
Examples
Success response
JSON format
{
"requestId": "D77D0DAF-790D-F5F5-A9C0-133738165014",
"result": {
"created": 0,
"active": true,
"updated": 1,
"name": "synonym",
"domain": "GENERAL",
"indexes": [
"[ \"default\" ]"
],
"processors": [
[
"default"
]
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.