Hey,
Don't think so, but is it possible to reload the synonym list
without restarting the cluster? The indices using this would need to
be rebuilt for things to correctly take effect.
Perhaps it would make more sense to add a new analyzer for the new
synonym list and create a new index using that analyzer, rebuild the
data into there and swap an alias? Along these lines, what API is used
to dynamically add a new analyzer? Maybe I'm not looking in correct
location, but I can't find any examples.
The only way to reload the synonym file is by closing and opening the
index. Adding new analyzers requires similar mechanism, where you close the
index, update its settings with the new analyzer, and then open it again.
Hey,
Don't think so, but is it possible to reload the synonym list
without restarting the cluster? The indices using this would need to
be rebuilt for things to correctly take effect.
Perhaps it would make more sense to add a new analyzer for the new
synonym list and create a new index using that analyzer, rebuild the
data into there and swap an alias? Along these lines, what API is used
to dynamically add a new analyzer? Maybe I'm not looking in correct
location, but I can't find any examples.
Ah, great to know, thanks! That will be very helpful.
I did some digging and while I couldn't find anything in the docs, I
managed to stumble across an example somebody had posted on how to
dynamically an analyzer during index creation. For those interested,
it looks like this:
The only way to reload the synonym file is by closing and opening the
index. Adding new analyzers requires similar mechanism, where you close the
index, update its settings with the new analyzer, and then open it again.
Hey,
Don't think so, but is it possible to reload the synonym list
without restarting the cluster? The indices using this would need to
be rebuilt for things to correctly take effect.
Perhaps it would make more sense to add a new analyzer for the new
synonym list and create a new index using that analyzer, rebuild the
data into there and swap an alias? Along these lines, what API is used
to dynamically add a new analyzer? Maybe I'm not looking in correct
location, but I can't find any examples.
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.