mirror of
https://github.com/iSharkFly-Docs/opensearch-docs-cn
synced 2025-02-10 20:16:01 +00:00
* Add new Query DSL section Signed-off-by: Naarcha-AWS <naarcha@amazon.com> * Change config settings Signed-off-by: Naarcha-AWS <naarcha@amazon.com> * Fix links Signed-off-by: Naarcha-AWS <naarcha@amazon.com> * Add Query DSL back to Search Signed-off-by: Naarcha-AWS <naarcha@amazon.com> * Fix remaining links Signed-off-by: Naarcha-AWS <naarcha@amazon.com> * Last reorder Signed-off-by: Naarcha-AWS <naarcha@amazon.com> * Add Heather's feedback Signed-off-by: Naarcha-AWS <naarcha@amazon.com> * Add Query DSL section. Delete Index Data page Signed-off-by: Naarcha-AWS <naarcha@amazon.com> * Fix index title Signed-off-by: Naarcha-AWS <naarcha@amazon.com> * Add correct title to managing indexes Signed-off-by: Naarcha-AWS <naarcha@amazon.com> * Change config yml Signed-off-by: Naarcha-AWS <naarcha@amazon.com> * Add permalinks for each page in query DSL section Signed-off-by: Naarcha-AWS <naarcha@amazon.com> * :wq --------- Signed-off-by: Naarcha-AWS <naarcha@amazon.com>
42 lines
880 B
Markdown
42 lines
880 B
Markdown
---
|
|
layout: default
|
|
title: Refresh search analyzer
|
|
nav_order: 50
|
|
parent: Text analyzers
|
|
has_toc: false
|
|
redirect_from:
|
|
- /im-plugin/refresh-analyzer/
|
|
- /im-plugin/refresh-analyzer/index/
|
|
---
|
|
|
|
# Refresh search analyzer
|
|
|
|
With ISM installed, you can refresh search analyzers in real time with the following API:
|
|
|
|
```json
|
|
POST /_plugins/_refresh_search_analyzers/<index or alias or wildcard>
|
|
```
|
|
For example, if you change the synonym list in your analyzer, the change takes effect without you needing to close and reopen the index.
|
|
|
|
To work, the token filter must have an `updateable` flag of `true`:
|
|
|
|
```json
|
|
{
|
|
"analyzer": {
|
|
"my_synonyms": {
|
|
"tokenizer": "whitespace",
|
|
"filter": [
|
|
"synonym"
|
|
]
|
|
}
|
|
},
|
|
"filter": {
|
|
"synonym": {
|
|
"type": "synonym_graph",
|
|
"synonyms_path": "synonyms.txt",
|
|
"updateable": true
|
|
}
|
|
}
|
|
}
|
|
```
|