Skip to main content
Metric aggregations compute summary numbers over all documents that matched your filter. Use metrics when you want one value (or stats object), not grouped buckets.

Available Operators

Behavior Notes

  • Metric operators require a field.
  • The field must be FAST in your schema.
  • Metric operators do not support nested $aggs.
  • For many metric operators, missing lets you provide a fallback value for documents where the field does not exist.