简体   繁体   中英

Update an Elasticsearch mapping by updating an Index Template

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM