NOTE: You are looking at documentation for an older release. For the latest information, see the current release documentation.
Use a Painless script to initialize values for use in a scripted metric aggregation. An initialization script is run prior to document collection once per shard and is optional as part of the full metric aggregation.
- User-defined parameters passed in as part of the query.
Mapused to add values for use in a map script.
Add values to this
Mapto for use in a map. Additional values must be of the type
- No expected return value.
The standard Painless API is available.