I am trying to avoid scripts (I am under the impression that may have a performance impact?) so would ideally like to do something like the following:
"foreach": "ctx.payload.aggregations.name.buckets",
"condition": {
"compare": {
"ctx.payload.doc_count" : {
"gte": 10
}
}
},
...
but I can't seem to get it working. Is it possible to do this? If there is a script-based solution that would also be appreciated, but as I said I am trying to avoid this if at all possible.
Thanks!