Filter based on the doc_count with aggregations (2)

You need to use params.doc_count to access variables like doc_count in your script. The script should be:

"params.doc_count > 2"
2 Likes