title: How to access Aggregations result with elasticSearch java api in SearchResponse?
body: <p>Is there a way to retrieve the aggregations' buckets in a search response, with the java API ? </p>
  
  <pre><code>{
    "took" : 185,
    "timed_out" : false,
    "_shards" : {
      "total" : 5,
      "successful" : 5,
      "failed" : 0
    },
    "hits" : {
      "total" : 200,
      "max_score" : 1.0,
      "hits" : [...]
    },
    "aggregations" : {
      "agg1" : {
        "buckets" : [...]
      },
      "agg2" : {
        "buckets" : [...]
      }
    }
  }
  </code></pre>
  
  <p>Currently, it's possible to get the aggregations but I can't figure out how to get the buckets.</p>
  
  <p>Current 1.0 version of ElasticSearch (v1.0.0.Beta2) is still a beta version, and maybe this feature still has to be added, but didn't find info on that point too.</p>