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"
}
}
}
}
},
...
}