Introduction
Bucket aggregations group your data into categories or ranges so you can see patterns and counts easily.
You want to count how many documents have the same value in a field.
You want to group data by ranges of numbers, like ages or prices.
You want to see the most common terms in a text field.
You want to create charts that show data distribution by buckets.
You want to analyze data trends by grouping similar items together.