January 2018
Intermediate to advanced
336 pages
7h 56m
English
Elasticsearch also supports aggregations (https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations.html) that provide aggregated results based on the given queries. Aggregations are useful for the Helping Hands application to get the status of the orders and generate analytics reports that can be used to understand the usage of the application.
For example, to take a look at the orders received every month, a date histogram aggregation can be created on the ts_start field:
{ "aggs": { "monthly_orders": { "date_histogram": { "field": "ts_start", "interval": "month" } } }}
Similarly, to get the stats on ratings received across orders so far, stats aggregation can be used on ...
Read now
Unlock full access