Missing aggregation

Missing aggregation #

A single-bucket aggregation of the documents that have no indexed value for a field — the inverse of the exists query.

Examples #

POST /sales/_search
{
  "aggs": {
    "no_price": {
      "missing": { "field": "price" }
    }
  }
}

Parameters for missing #

  • field
    (Required, string) Field to check for missing values.
  • aggs
    (Optional, object) Nested sub-aggregations, computed over the documents missing the field.
Calendar September 26, 2026
Edit Edit this page