Reindex is a new functionality 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 mapping changes due to an improvement in mappings.
You need an up-and-running Elasticsearch installation as we described in the Downloading and installing Elasticsearch recipe in Chapter 2, Downloading and Setup.
To execute curl
via the command-line you need to install curl
for your operating system.
To correctly execute the following commands, you need an index populated with the chapter_09/populate_for_scripting.sh
script available in the online code and Javascript/Python language scripting plugins installed.