Hi Team, we want to upgrade the older version of index(6.x) to newer version(7.x) in the ES cluster with version 7.17. However the new index which is getting created as part of snapshot restore is getting created with older version(6.x), please find the steps followed below:
In order to upgrade an index to a newer version you will need to reindex as this changes the structure on disk to the new version. Restoring a snapshot just restores exactly what was in place when the snapshot was taken so can not alter version.
thanks for replying @Christian_Dahlqvist, while re-indexing the index which is getting created is having different mapping than the older index for eg. rountingIds, other index settings, we have the requirement to create the new index with exact same mappings as the old index.
is there a way to copy exact mappings as of the old index and create new index with upgraded version following by copying data from old index to new index?
No, that can as far as I know not be done automatically (there could potentially exist deprecated mappings and settings that are no longer valid for an index created in the new version). You will need to control the mappings either by manually creating the new index with the correct mappings before you start reindexing or create an index template that applies to the new index that enforces the correct set of mappings.
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.