Reindexing over 80 indices with one script

I've upgraded to version 7.2 from 6.6.1

in the upgrade assistant via Kibana 7.2 it shows that indices should be re-index to at least version 7.

the question is, how can re-index 80 indices in a single command or script? is it possible?

First, you can create a bash script using curl
Second you can use POST _REINDEX api , attaching document:

Thanks, I've found an example at the bottom of the guide.....

but when I run this will it automatically append the mapping type to _doc ?

Yes, in case in your template there is correct mapping

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.