Filter aggregations

"aggs": {
"status": {
"filters": {
"filters": {
"Prod1": {
"query_string": {
"query": "tech-1"
}
},
"Prod2": {
"query_string": {
"query": "tech-2"
}

"condition": {
"script": {
"source": "if (ctx.payload.aggregations.status.buckets.Prod1.doc_count < 1) return true; if (ctx.payload.aggregations.status.buckets.Prod2.doc_count < 1) return true; return false",
"lang": "painless"

Issue is I get the same results for both searches.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.