Skip to main content

Documentation Index

Fetch the complete documentation index at: https://upstash.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Bucket aggregations group matching documents into buckets. Use bucket aggregations when you want segmented analytics (for example by category, price tier, or time window).

Available Operators

OperatorWhat it groups by
$termsDistinct field values
$rangeExplicit from / to ranges
$histogramFixed numeric intervals
$dateHistogramFixed date/time intervals
$facetHierarchical FACET paths

Behavior Notes

  • Bucket operators can contain nested $aggs.
  • $terms, $range, $histogram, and $dateHistogram support nested $aggs.
  • $facet does not support nested $aggs and cannot be used as a sub-aggregation.