I have an existing index for which the default ElasticSearch similarity is
used for all fields. I would like to update this index and set some other
type of similarity, like BM25. The query I tried is:
However, this crashes with an IndexAlreadyExists exception. Still, is it
possible to update the similarity measure for all fields inside this index
without having to reindex the data?
You cannot change the similarity on an existing index. There is no
technical measure why it could not occur, it appears to be simply a method
in place to prevent users from creating potentially huge errors. I say that
developers should have the option to shoot themselves in the foot!
I have an existing index for which the default Elasticsearch similarity is
used for all fields. I would like to update this index and set some other
type of similarity, like BM25. The query I tried is:
However, this crashes with an IndexAlreadyExists exception. Still, is it
possible to update the similarity measure for all fields inside this index
without having to reindex the data?
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.