How to reindex data in Elasticsearch without actually changing index names?

Can someone please help me solve the issue?