Mean calculating within elasticsearch

Hi,
i have an index in elasticsearch that contains 3 fields(time,tweet, sentiment compound) and want to add new field that contains sentiment compound's mean for each 5 min .
Does any one have an idea about how to do that?
Thank you.

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