Chapter 7. Exploring your data with aggregations

This chapter covers

  • Metrics aggregations
  • Single and multi-bucket aggregations
  • Nesting aggregations
  • Relations among queries, filters, and aggregations

So far in this book, we’ve concentrated on the use case of indexing and searching: you have many documents and the user wants to find the most relevant matches to some keywords. There are more and more use cases where users aren’t interested in specific results. Instead, they want to get statistics from a set of documents. These statistics might be hot topics for news, revenue trends for different products, the number of unique visitors to your website, and much more.

Aggregations in Elasticsearch solve this problem by loading the documents matching ...

Get Elasticsearch in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.