Wanted to understand, if there is any specific reason why Elasticsearch doesn't allow updating mapping of index in place for existing fields?
Is this anti pattern? Or Is there any particular reason? Wasn't able to find anything regarding the same.
In general You can add mappings to an index but you can not remove or update existing mappings as this would break the ability to access the underlying data as the data is stored with the correct mapping / type / definition as it is indexed / stored.
You can create a new index with the new mapping and then _reindex if you want.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.