Updating analyzer within ElasticSearch settings

拟墨画扇 提交于 2019-12-01 05:21:06

Short answer: No.

Longer answer. From the ES docs:

"Although you can add new types to an index, or add new fields to a type, you can’t add new analyzers or make changes to existing fields. If you were to do so, the data that had already been indexed would be incorrect and your searches would no longer work as expected."

Best way is to create a new index, and move your data. Some clients have helpers to do this for you, but it's not part of the standard Java client.

http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/reindex.html

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