[DOCS] Added note about valid return types for scripts in the scripted_metric aggregation

This commit is contained in:
Colin Goodheart-Smithe 2015-09-02 12:13:15 +01:00
parent 34ee4c2d66
commit 1d9905a798

View File

@ -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