Nested Objects aggregations

Hi all,

I'm looking for ability of using nested fields in aggregations, but Kibana does not support it. Is there are some natural way to add some interceptor or so, to be able to modify/build JSON before sending request to ES?
Here is the JSON that Kibana generates:

{
  ...
  "aggs": {
    "1": {
      "sum": {
        "field": "person.parents.age"
      }
    }
  },
  ...
}

and here is what it should look like to be successfully processed on ES:

{
  ...
  "aggs": {
    "1": {
      "nested":{
        "path":"person.parents"
       },
      "aggs": {
        "2": {
        "sum": {
          "field": "person.parents.age"
          }
        }
      }
    }
  },
  ...
}

Hi,

we are currently still working on nested field support. You can follow #1084 for updates on nested field support.

Also there is a KibanaNestedSupportPlugin which you could use to enable nested field supports for your Kibana. If you are interested in seeing how to implement that yourself, the sources of this plugin would be the best way to start.

Cheers,
Tim

Thanks for quick response

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.