Search code examples
elasticsearchelasticsearch-5

Best way to reindex multiple indices in ElasticSearch


I am using Elasticsearch 5.1.1 and have 500 + indices created with default mapping provided by ES.

Now we have decided to use dynamic templates. In order to apply this template/mapping to old indices I need to reindex all indices.

What is the best way to do it? Can we use Kibana for this ? Couldn't find sufficient documentation to do so.


Solution

  • You can use the _reindex API which can also reindex multiple indices. It was specifically built for this.