Files
OpenSearch-Docs-Cn/_query-dsl/analyzers/refresh-analyzer.md
T
Naarcha-AWS e119a93798 Index and OpenSearch TOC changes (#2946)
* Add new Query DSL section

Signed-off-by: Naarcha-AWS <[email protected]>

* Change config settings

Signed-off-by: Naarcha-AWS <[email protected]>

* Fix links

Signed-off-by: Naarcha-AWS <[email protected]>

* Add Query DSL back to Search

Signed-off-by: Naarcha-AWS <[email protected]>

* Fix remaining links

Signed-off-by: Naarcha-AWS <[email protected]>

* Last reorder

Signed-off-by: Naarcha-AWS <[email protected]>

* Add Heather's feedback

Signed-off-by: Naarcha-AWS <[email protected]>

* Add Query DSL section. Delete Index Data page

Signed-off-by: Naarcha-AWS <[email protected]>

* Fix index title

Signed-off-by: Naarcha-AWS <[email protected]>

* Add correct title to managing indexes

Signed-off-by: Naarcha-AWS <[email protected]>

* Change config yml

Signed-off-by: Naarcha-AWS <[email protected]>

* Add permalinks for each page in query DSL section

Signed-off-by: Naarcha-AWS <[email protected]>

* :wq

---------

Signed-off-by: Naarcha-AWS <[email protected]>
2023-03-08 09:53:21 -06:00

880 B

layout, title, nav_order, parent, has_toc, redirect_from
layout title nav_order parent has_toc redirect_from
default Refresh search analyzer 50 Text analyzers false
/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:

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:

{
  "analyzer": {
    "my_synonyms": {
      "tokenizer": "whitespace",
      "filter": [
        "synonym"
      ]
    }
  },
  "filter": {
    "synonym": {
      "type": "synonym_graph",
      "synonyms_path": "synonyms.txt",
      "updateable": true
    }
  }
}