21 lines
549 B
Plaintext
21 lines
549 B
Plaintext
[[painless-bucket-agg-context]]
|
|
=== Bucket aggregation context
|
|
|
|
Use a Painless script in an
|
|
{ref}/search-aggregations-pipeline-bucket-script-aggregation.html[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-reference, Painless API>> is available. |