mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-22 12:56:53 +00:00
[DOCS] Clarify behaviour of scripted-metric arg with empty parent buckets
This commit is contained in:
parent
018c6c38fe
commit
5e7a79636d
@ -278,3 +278,9 @@ params:: Optional. An object whose contents will be passed as variable
|
||||
"_agg" : {}
|
||||
}
|
||||
--------------------------------------------------
|
||||
|
||||
==== Empty Buckets
|
||||
|
||||
If a parent bucket of the scripted metric aggregation does not collect any documents an empty aggregation response will be returned from the
|
||||
shard with a `null` value. In this case the `reduce_script`'s `_aggs` variable will contain `null` as a response from that shard.
|
||||
`reduce_script`'s should therefore expect and deal with `null` responses from shards.
|
||||
|
Loading…
x
Reference in New Issue
Block a user