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!
Cheers, Ivan On Thu, Oct 9, 2014 at 6:58 AM, CC <[email protected]> wrote: > 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: > > curl -XPOST 'http://localhost:9200/myindex/' -d > '{"settings":{"similarity":{"newSimilarity":{"type":"BM25"}}}}' > > 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? > > Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "elasticsearch" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/d6463b4f-129b-41de-8fbc-bbc446887b54%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/d6463b4f-129b-41de-8fbc-bbc446887b54%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQA1zQg%3DVwz2JwRnzeAFqEs0-d5Eg-egM6qBoFc4OV_JZQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
