February 2017
Intermediate to advanced
696 pages
12h 24m
English
Searching for results is obviously the main activity for a search engine; thus a aggregations are very important because they often help to augment the results.
Aggregations are executed along the search by performing analytics on searched results.
You need an up-and-running Elasticsearch installation, as we described in the Downloading and installing Elasticsearch recipe in Chapter 2, Downloading and Setup.
You also need the Python installed packages of the Creating a client recipe of this chapter.
The code of this recipe can be found in the chapter_16/aggregation.py file.
To extend a query with the aggregations part, you need to define an aggregation section, as we have already seen in ...
Read now
Unlock full access