How to do sum aggregations in Java API?

I have a query similar to the following SQL:

select sum(count+displayCount) as total from day_inc_count group by video_id

My problem is how to implement the above using aggregation in REST or Java
I don't understand aggregations in elasticsearch 1.0 very much. Hope
somebody could help.
Thanks very much.

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