Update an Elasticsearch mapping by updating an Index Template

4.3k Views Asked by At

I am currently using the config templates to store mappings for my indexes in ES and was wondering... If I updated my mapping in a template file, how would I go about propagating that mapping to already indexed documents? Is there currently a way to reindex the entire index or index type??

Any help is much appreciated!

E

1

There are 1 best solutions below

1
On

Since 2.3 Elasticsearch has a Reindex API that allows indexing into a target index with a different mapping.

Documentation: https://www.elastic.co/guide/en/elasticsearch/reference/5.0/docs-reindex.html