How implement updating index by synonyms without closing index?

226 views Asked by At

I need implement search by synonyms, now it possible todo by closing index, update index by synonym filter, open index. The probem is that users can update synonym dictanory in any time, and it should not affect system, but when index closed, impossible to search, put in index.

1

There are 1 answers

4
Val On

You need to use a synonym file which you can update without having to close/open the index.

The downside is that the synonym file needs to be stored on each node of your cluster and users might not have access to it.

Also after refreshing a file, you need to call POST /<target>/_reload_search_analyzers in order to pick up changes to synonym files.

There's also a long-standing issue seeking to provide an API for improved synonym management, but it's still in the works.