Reindexing is a new functionality that was introduced in Elasticsearch 5.x for automatically reindexing your data in a new index. This action is often done for a variety of reasons, mainly for mapping changes that require a full reindex of your data.
Reindexing with a script
Getting ready
You will need an up-and-running Elasticsearch installation—similar to the one that we described in the Downloading and installing Elasticsearch recipe in Chapter 2, Managing Mapping.
To execute curl using the command line, then you will need to install curl for your operating system.
In order to correctly execute the following commands, you will need an index that is populated with the chapter_09/populate_for_scripting...