Data aggregation provides us with a way to extract the information from a huge set of data and present it in a summary form. We can group the information in various buckets to get an idea of various categories or ranges. Let's take an example of a shopping site where we have complete data regarding products and their prices. Now, if we want to categorize the products into different price ranges, then we have to apply data aggregation. In the same way, we can also apply aggregation of product categories. In this chapter, we will cover the different types of aggregations that Elasticsearch provides, such as metrics, bucket, pipeline, and matrix aggregation. In this chapter, we are going to cover the following topics:
- What is an aggregation framework?
- Advantages of aggregations
- Structure of aggregations
- Metrics aggregations
- Bucket aggregations