You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
way I'd do it is to define a file of synonyms, as described in the documentation here and maintain that file.
With this one I'd create my custom token filter and use them at indexing time. Probably not a huge performance hit if you'd do this at query time, but it's better to do it at indexing time. The response time at query time will be better.
As you see in the link I provided above, you can define a simple text file where you put something like:
ivory, creme, putty =>white
...
This means that for any ivory, creme, putty found at indexing time, ES will actually index white and that's it.
And the analyzer would look like this: "analyzer" : { "synonym" : { "tokenizer" : "whitespace", "filter" : ["synonym"] } }, "filter" : { "synonym" : { "type" : "synonym", "synonyms_path" : "analysis/synonym.txt" } }
No description provided.
The text was updated successfully, but these errors were encountered: