I was wondering, If I update the synonyms files, do I need to reload the data into ES?
Because I have tried to only restart ES after updating synonyms files, but it does not work.
If it is so, do you have any more efficient solution, since reloading data is quite frustrated..
Synonyms can be used to expand or contract. expand: jump becomes skip and hop too contract: jump and skip are normalized to hop.
In the case of expansions you need only apply the synonym analyzer to the docs at index time or the queries at query time. Index-time expansion = faster queries but requires reindexing when synonyms change Query-time expansion = slower queries and no need to reindex when synonyms change
For contraction use cases the queries and indexed docs both need to be in agreement in what to normalize words to and so changes to synonyms require a reindex.
I might reindex them periodically,
but one thing is, I might require the query time synonyms come into force once the synonyms file is edited in real time.
So my question is: Can I achieve query time synonyms update by other method and not restarting all nodes? Since restarting may cost quite a time (during which the system is not working) which is not desired.
Do you have any idea on this?
OIf synonyms are on a file, then you need to restart.
If you defined synonyms using the REST API, then I think that you don't have to restart (but I never tried it).
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.