Return many values from Painless script to aggregation

Hi,

is it possible to get more than one value from script in e.g., terms aggregation from one document? I would like to have an aggregation of values of two fields using the script. I know I can use copy_to in mapping or other feature, but values I want to aggregate need manipulations. Can I return the List or something else?

Regards

I've tried with ArrayList and it works :wink:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.