We are using multi level Aggregation:
`{
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"and": []
}
}
},
"aggs": {
"FIELD1": {
"terms": {
"field": "City"
},
"aggs": {
"FIELD2": {
"terms": {
"field": "Class"
}
}
}
}
}
}`
We have buckets of "City" and each bucket of City has buckets of "Class". Now for some, Class Bucket is empty as the value of the field is NULL. How can we remove Empty Bucket from the Aggregation.