Elasticsearch cluster change schema in the same index

We are using elasticsearch cluster version 7.10. And have some data in an index. We have updated schema for the cluster index and wanted to migrate the data from old schema to new schema in the same index.

Is there any better way to do this? Or what options do we have to achieve this?

Thank you.

I'd use the reindex API.

But while you are at it, please upgrade at the very least to 7.17. Your version is unsecured so you are at risk.
Better to upgrade to 8.14.1. So many improvements since then.

1 Like

Thank you for suggesting the upgrades. But I believe that api is not available for 7.10 version cluster?

It is, you need to change the version on the left side drop down menu.

Here is the direct link: Reindex API | Elasticsearch Guide [7.10] | Elastic

1 Like