Min aggregation
/ Min, / AggregationMin aggregation #
A single-value metrics aggregation that keeps track and returns the minimum value among numeric values extracted from the aggregated documents. It answers “how low does this field go” over any query — the floor of a price range, the earliest timestamp in a window, the cheapest item that matches a filter.
How it works #
The engine walks the matching documents once, keeping the smallest value seen;
any larger value costs one comparison. Values are coerced to doubles as they
are read — integers, floats and booleans (true = 1, false = 0) qualify,
non-numeric values such as keyword strings do not.