Executing a search

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.