[source, ruby]
----
response = client.search(
  index: 'parent_example',
  size: 0,
  body: {
    aggregations: {
      "top-names": {
        terms: {
          field: 'owner.display_name.keyword',
          size: 10
        },
        aggregations: {
          "to-questions": {
            parent: {
              type: 'answer'
            },
            aggregations: {
              "top-tags": {
                terms: {
                  field: 'tags.keyword',
                  size: 10
                }
              }
            }
          }
        }
      }
    }
  }
)
puts response
----
