IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Bucket aggregation context
editBucket aggregation context
editUse a Painless script in an bucket aggregation to calculate a value as a result in a bucket.
Variables
-
params
(Map
, read-only) -
User-defined parameters passed in as part of the query. The parameters
include values defined as part of the
buckets_path
.
Return
- numeric
- The calculated value as the result.
API
The standard Painless API is available.