In the previous recipe, we saw how to initialize a client to send calls to an Elasticsearch cluster. In this recipe, we will look at how to manage indices via client calls.
Managing indices
Getting ready
You need an up-and-running Elasticsearch installation, as we described in the Downloading and installing Elasticsearch recipe in Chapter 1, Getting Started.
You also need the Python-installed packages from the Creating a client recipe in this chapter.
The full code for this recipe can be found in the ch15/code/indices_management.py file.