Painless/ Scripted Fields : How to do a group by

Hi!

I would like to do something like the following using painless:

select day,sum(price)/sum(quantity)
from data 
group by day

Is it possible?

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