Accepts intervention entry changes.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
opensearch:WriteInterventionDictionary |
update |
*InterventionDictionary
|
None | None |
Request syntax
POST /v4/openapi/intervention-dictionaries/{name}/entries/actions/bulk HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| name |
string |
Yes |
The name of the intervention dictionary. |
my_dict |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| dryRun |
boolean |
No |
Specifies whether to validate the input data. Default value: false. Valid values:
|
false |
| body |
array<object> |
No |
The request body. |
|
|
array<object> |
No |
The items in the request body. |
{ "cmd": "add", "word": "Search", "created": 1536661485, "updated": 1537320187, "status": "ACTIVE", "relevance": { "100": "0", "200": "2" } } |
|
| cmd |
string |
No |
The operation command. Valid values: add: Adds an entry. delete: Deletes an entry. |
add |
| word |
string |
No |
The entry. |
Guoer |
| status |
string |
No |
The status of the entry. Valid values: ACTIVE: The entry is in effect. |
ACTIVE |
| stopword |
boolean |
No |
The stop word intervention type. Valid values: true: Adds the word. false: Blocks the word. |
|
| alias |
array |
No |
The added synonyms. |
|
|
string |
No |
The added synonyms. |
hei |
|
| antiAlias |
array |
No |
The blocked synonyms. |
|
|
string |
No |
The blocked synonyms. |
hi |
|
| correction |
string |
No |
The correction word. |
Guo |
| enabled |
boolean |
No |
The spelling correction intervention type. Valid values: true: Adds the correction. false: Blocks the correction. |
|
| relevance |
object |
No |
The category prediction intervention content. The key is the category prediction ID, and the value is the relevance level. Valid values for the relevance level: 0: Irrelevant. 1: Slightly relevant. 2: Relevant. |
|
|
integer |
No |
The relevance level corresponding to the category prediction ID. Valid values: 0: Irrelevant. 1: Slightly relevant. 2: Relevant. |
0 |
|
| tokens |
array<object> |
No |
The intervention content of the entry. |
|
|
object |
No |
A single entry intervention item. |
||
| token |
string |
No |
The entity word or term. |
Bean |
| weight |
integer |
No |
The term weight. Valid values: 7: High weight. 4: Medium weight. 1: Low weight. |
7 |
| tag |
string |
No |
The English name of the Named Entity Recognition result. |
category |
| tagLabel |
string |
No |
The Chinese name of the Named Entity Recognition result. |
品类 |
| order |
integer |
No |
The sequence number of the term. |
1 |
| matchType |
integer |
No |
The match type. For Named Entity Recognition entries, valid values: 0: Takes effect when the entire query is matched. 1: Takes effect when a partial match occurs. |
0 |
| expirationTime |
integer |
No |
The expiration timestamp, in seconds. |
1675253365 |
| tags |
array |
No |
The list of top search entry tags. Valid values: 0: New. 1: Hot. 2: Viral. |
|
|
integer |
No |
The top search entry tag value. Valid values: 0: New. 1: Hot. 2: Viral. |
1 |
|
| rank |
integer |
No |
The position. Valid values: 1 to 10. |
1 |
Request body Common parameters.
| Field | Type | Required | Example | Description |
| [] | Object | Yes | The entry information. | |
| [].cmd | String | Yes | "add" | The operation command. - add: Adds an entry. - delete: Deletes an entry. |
| [].word | String | Yes | "Alibaba Cloud" | The entry. |
Specific parameters Reference:
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body when the request is successful. |
||
| requestId |
string |
The request ID. |
D77D0DAF-790D-F5F5-A9C0-133738165014 |
| result |
object |
The returned result. |
Examples
Success response
JSON format
{
"requestId": "D77D0DAF-790D-F5F5-A9C0-133738165014",
"result": {
"test": "test",
"test2": 1
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.