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

ぐ巨炮叔叔 提交于 2019-12-25 00:06:17

问题


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.


回答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.



来源:https://stackoverflow.com/questions/46806222/does-changing-from-simple-analyzer-of-elastic-search-to-standard-analyzer-requir

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!