mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 09:28:27 +00:00
[DOCS] Added note about valid return types for scripts in the scripted_metric aggregation
This commit is contained in:
parent
34ee4c2d66
commit
1d9905a798
@ -79,7 +79,16 @@ The above example can also be specified using file scripts as follows:
|
||||
|
||||
<1> script parameters for init, map and combine scripts must be specified in a global `params` object so that it can be share between the scripts
|
||||
|
||||
For more details on specifying scripts see <<modules-scripting, script documentation>>.
|
||||
For more details on specifying scripts see <<modules-scripting, script documentation>>.
|
||||
|
||||
==== Allowed return types
|
||||
|
||||
Whilst and valid script object can be used within a single script. the scripts must return or store in the `_agg` object only the following types:
|
||||
|
||||
* primitive types
|
||||
* String
|
||||
* Map (containing only keys and values of the types listed here)
|
||||
* Array (containing elements of only the types listed here)
|
||||
|
||||
==== Scope of scripts
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user