Skip to main content

Module parser

Module parser 

Source
Expand description

Aggregation JSON parser.

See [[aggregations]] and [[feature-aggregations-v010#Step 4]].

Every per-agg-type parser routes its body through [validate_keys] so typos (missing_value on an avg, percission on geohash_grid, calendar_unit on date_histogram) surface as parse errors listing the valid keys — see [[fix-strict-search-parsing]].

Functions§

parse_aggs
Parse the "aggs" section of a search request.