0

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.

Amit
  • 30,756
  • 6
  • 57
  • 88
  • 2
    If you change an analyzer, of course you need to reindex your data, or at the very least the field whose analyzer was changed. – Val Oct 18 '17 at 08:52
  • @Val , But as I mentioned, its working fine for me, don't know how although. – Amit Oct 18 '17 at 09:00
  • 1
    As far as I know you can't actually change the analyzer on an existing field. How did you change it? Did you confirm it actually changed like you expected (checking the mapping api)? (I've just tried it with ES 5.6.3 and it behaves as I expect -- error trying to update mapping and mapping does not change.) You should share more information -- including version of ES and steps to reproduce. – dshockley Oct 18 '17 at 11:43

1 Answers1

1

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

Val
  • 207,596
  • 13
  • 358
  • 360