Hi, I want to build aggregation on parameter but filtered by nested path. Something like this:
"aggs": {
"events.name12": {
"filter": {},
"aggs": {
"events": {
"nested": {
"path": "events"
},
"aggs": {
"filtered.events": {
"filter": {
"terms": {
"events.id": [
448,
435,
338,
364
]
}
},
"aggs": {
"filtered": {
"filter": {},
"aggs": {
"profile.email": {
"terms": {
"field": "email",
"size": 5
}
},
"profile.email_name": {
"cardinality": {
"field": "email"
}
}
}
}
}
}
}
}
}
}
},
is this possible ?