Bucket aggregation And Java client

In the future please don't create multiple topics for the same questions, it makes it harder for people to help you.