Resolving index names
In the previous recipe, we saw how to use a wildcard to select indices and their aliases.
If you have a large number of indices and aliases, when you try to select them using wildcards, some results won't be provided, so you'll need to understand why. It's also common to need to debug the slowness of a query (due to how much data has been queried) or an error because you are trying to query closed indices.
To help you solve such issues, you can use the resolve index API, which allows you to return all the information about the indices that can be queried.
Getting ready
You will need an up-and-running Elasticsearch installation, as we described in the Downloading and installing Elasticsearch recipe of Chapter 1, Getting Started.
To execute the commands in this recipe, you can use any HTTP client, such as curl (https://curl.haxx.se/), Postman (https://www.getpostman.com/), or others. I suggest using the Kibana console as it provides...