elasticsearch-sudachi
elasticsearch-sudachi copied to clipboard
Automatic reloading of the user dic
There is a nice plugin which syncs config files such as user dic among ES instances.
Is it possible to add an automatic reloading feature when the user dic is updated?
Without such functionality we need to open/close all indexes that use the dic on all ES instances, or restart all ES instances. That is a burden.
Transferred to elasticsearch plugin repo. WIll try to implement this in some capacity. Dictionary reload will not be supported for binary dictionaries of plain sudachi (but may be supported for auto-compiled csv-based dictionaries).
After a consideration there is a problem: what to do with old documents which were analyzed by a different dictionary. When reloading a dictionary, some documents can produce different token streams and will not be searchable anymore.
Possible actions:
- Do nothing (easiest implementation)
- Reindex all documents (this will be pretty difficult to implement atomically)
Any ideas on possible behavior?