Script average value over hits


I want to make a script that does some statistics, as how I understand it,
ES don't do statistic the way I need it to.

The search I do returns multiple hits like
What I want to do is an average of time after 13:37 independent of date. So
what I think would do it is creating a date object and push
parseFloat(date.getMinutes()+"."+date.getSeconds()), and then average it in
the end and put it into the response. Wrote it like javascript, but I
assume MVEL is the fastest language, so I'd like to do it in MVEL.

Is this at all possible, or would I have to do it on the client side?

Regards Jo Emil

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit