One of the most common queries in the match_all query. This kind of query allows the user to return all the documents that are available in an index. The match_all and other query operators are part of the Elasticsearch query DSL.
Matching all the documents
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.
To execute these commands, any HTTP client can be used, such as curl (https://curl.haxx.se/), postman (https://www.getpostman.com/), or similar. I suggest using the Kibana console as it provides code completion and better character escaping for Elasticsearch.
To correctly execute the following...