🔍 Elasticsearch
Intermediate
What are aggregations in Elasticsearch?
Answer
Aggregations are Elasticsearch's analytics framework — they allow you to compute summaries over your data alongside search results. Bucket aggregations group documents into buckets (e.g., terms aggregation groups by a field value like category, date_histogram groups by time intervals, range groups by value ranges). Metric aggregations compute numeric values over a set of documents (e.g., avg, sum, min, max, cardinality for approximate unique count). Aggregations can be nested: you can compute metrics within each bucket. They power Kibana dashboards and are executed server-side on the indexed data.
Previous
What is a bool query in Elasticsearch?
Next
What is the difference between text and keyword field types?
More Elasticsearch Questions
View all →- Intermediate What is the difference between query context and filter context in Elasticsearch?
- Intermediate What is a bool query in Elasticsearch?
- Intermediate What is the difference between text and keyword field types?
- Intermediate What are index templates and component templates in Elasticsearch?
- Intermediate What is the Reindex API and when would you use it?