Convert elasticsearch query to java with multi aggregation
<p>I am using elastichsearch in java 1.7.5 and after console query I want to tranform the code below to java code. It is a query with mutiple sub-aggregation and result in my confusion. </p>

<pre><code>{
  "query": {
    "bool": {
      "must": [
        {
          "range": {
            "rawlog.auAid": {
              "from": "3007145536"
            }
          }
        },
        {
          "term": {
            "rawlog.ip": "118.70.204.171"
          }
        }
      ],
      "must_not": [],
      "should": []
    }
  },
  "aggs": {
    "articles_over_time": {
      "date_histogram": {
        "field": "loggedTime",
        "interval": "second"
      },
      "aggs": {
        "id": {
          "terms": {
            "field": "auAid"
          }
        },
        "url": {
          "terms": {
            "field": "urlId1"
          }
        },
        "devVerId": {
          "terms": {
            "field": "devVerId"
          }
        },
        "devTypeId": {
          "terms": {
            "field": "devTypeId"
          }
        },
        "osVerId": {
          "terms": {
            "field": "osVerId"
          }
        },
        "browserId": {
          "terms": {
            "field": "browserId"
          }
        }
      }
    }
  }
}
</code></pre>

<p>Can anyone help me to perform it ? Thanks so much</p>