Aggs on scrited fields

Can someone share an example on how to run aggregations (avg, sum) on script field.

I am getting 0 when value is present.

Thanks in advance

please show your query dsl

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