I'm looking for tutorials and examples of building aggregates using the Java High Level client API.
Google doesn't throw up much, the ES guide is an overview of functionality and the Javadocs just list the API of course.
I'm interested in building bucketed queries of simple things like hourly mean of a field over a time range.
Whilst i can find JSON query samples, I'd like to find some more examples of constructing these using the HL API specifically.
Any pointers appreciated.