title: How to term query nested json objects/fields in elastic search?
body: <p>I am doing term aggregation based on field [type] like below but elastic is returning only 1 term count instead of 2 it is not doing nested object aggregation i.e under comments.data.comments[is a list] under this i have 2 type.</p>
  
  <pre><code>{
      "aggs": {
          "genres": {
              "terms": {
                  "field": "comments.data.comments.type"
              }
          }
      }
  }
  </code></pre>