I have inherited some code I am trying to understand. The query uses bool query with empty body within aggregations as shown below:
"aggs": {
"aggregate_name": {
"filter": {
"bool": {}
},
"aggs": {
"sub_aggr_name": {
"terms": {
"field": "somefield",
"size": 100
}
}
}
}
Is it trying to set the parent aggregate bucket to empty? If so what document set will the sub-aggregate work on?