Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.

Commit 650c2ab

Browse files
author
ashwinkumar12345
committed
added feedback
1 parent e2056c1 commit 650c2ab

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/ism/refresh-analyzer.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,25 @@ With ISM installed, you can refresh search analyzers in real time with the follo
1313
POST /_opendistro/_refresh_search_analyzers/<index or alias or wildcard>
1414
```
1515
For example, if you change the synonym list in your analyzer, the change takes effect without you needing to close and reopen the index.
16+
17+
To work, the token filter must have an `updateable` flag of `true`:
18+
19+
```json
20+
{
21+
"analyzer": {
22+
"my_synonyms": {
23+
"tokenizer": "whitespace",
24+
"filter": [
25+
"synonym"
26+
]
27+
}
28+
},
29+
"filter": {
30+
"synonym": {
31+
"type": "synonym_graph",
32+
"synonyms_path": "synonyms.txt",
33+
"updateable": true
34+
}
35+
}
36+
}
37+
```

0 commit comments

Comments
 (0)