Elasticsearch was born as a search engine; its main purpose is to process queries and give results as fast as possible. In this recipe, we'll see that a search in Elasticsearch is not only limited to matching documents - it can also calculate additional information that's required to improve the search quality.
Executing a search
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 something similar. I suggest using the Kibana console as it provides...