I'm trying to create aggregations for certain matches.
GET /test_index_search
{
"aggregations": {
"fooAggregation": {
"filters": {
"filters": {
"mu-custom-foo-agg": {
"bool": {
// my boolean query that searcher for `foo` matches
}
}
}
}
},
"barAggregation": {
"filters": {
"filters": {
"mu-custom-bar-agg": {
"bool": {
// my boolean query that searcher for `bar` matches
}
}
}
}
}
}
}
The aggregation results that I receive are quite fine. But I'd like to combine them as sub-aggregations for convenience.
The only thing that I've found out - Elasticsearch supports Composite aggregations link, but CompositeSources, used as composite aggregation items do not use filter queries.
Is there any other way just to combine them into a single aggregation?