forked from opensearch-project/documentation-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation for reload_searchIanalyzer api (opensearch-project#…
…1339) * updated incorrect links Signed-off-by: ariamarble <[email protected]> * add documentation for reload search analyzer api Signed-off-by: ariamarble <[email protected]> * made suggested changes Signed-off-by: ariamarble <[email protected]> * made additional formatting changes Signed-off-by: ariamarble <[email protected]> * made editorial changes Signed-off-by: ariamarble <[email protected]> Signed-off-by: ariamarble <[email protected]>
- Loading branch information
1 parent
05f466d
commit 7d41fc5
Showing
1 changed file
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
layout: default | ||
title: Reload search analyzer | ||
parent: REST API reference | ||
nav_order: 83 | ||
--- | ||
|
||
# Reload search analyzer | ||
|
||
The reload search analyzer API operation detects any changes to [synonym]({{site.url}}{{site.baseurl}}/opensearch/ux/) files for any configured [search analyzers]({{site.url}}{{site.baseurl}}/im-plugin/refresh-analyzer/index/). The reload search analyzer request needs to be run on all nodes. Additionally, the synonym token filter must be set to `true`. | ||
|
||
## Path and HTTP methods | ||
|
||
``` | ||
POST /<index>/_reload_search_analyzers | ||
GET /<index>/_reload_search_analyzers | ||
``` | ||
|
||
## Request body fields | ||
|
||
Request body parameters are optional. | ||
|
||
Field Type | Data Type | Description | ||
:--- | :--- | :--- | ||
allow_no_indices | Boolean | When set to `false`, an error is returned for indexes that are closed or missing and match any wildcard expression. Default is set to `true`. | ||
expand_wildcards | String | Allows you to set the wildcards that can be matched to a type of index. Available options are `open`, `closed`, `all`, `none`, and `hidden`. Default is set to `open`. | ||
ignore_unavailable | Boolean | If an index is closed or missing, an error is returned when ignore_unavailable is set to `false`. Default is set to `false`. | ||
|
||
## Examples | ||
|
||
The following are an example request and response. | ||
|
||
#### Sample request | ||
|
||
````json | ||
POST /shakespeare/_reload_search_analyzers | ||
```` | ||
|
||
#### Sample response | ||
|
||
````json | ||
{ | ||
"_shards": { | ||
"total": 1, | ||
"successful": 1, | ||
"failed": 0 | ||
}, | ||
"reload_details": [ | ||
{ | ||
"index": "shakespeare", | ||
"reloaded_analyzers": [ | ||
"analyzers-synonyms-test" | ||
], | ||
"reloaded_node_ids": [ | ||
"opensearch-node1" | ||
] | ||
} | ||
] | ||
} | ||
```` |