Search code examples
elasticsearchanalyzerreindex

Does changing from Simple Analyzer of Elastic search to Standard Analyzer requires the re-index?


I changed the simple analyzer on a field to Standard analyzer and tested it locally and it's working fine. I don't have to re-index all my documents in ES.

But according to this SO post and this ES doc, looks like we need to re-index if we add/change the analyzer on a field.

I am confused as its working fine now and it would take consider amount of time if I do the re-indexing and want to avoid it, if it's not required.

Let me know if somebody faced the similar situation and what they did ?

Edit :- I am using the ES 1.7 version and I changed the analyzer on a field and just started the app again, I think my app just update the latest mapping to ES.


Solution

  • If you change an analyzer, of course you need to reindex your data, or at the very least the field whose analyzer was changed.