Bucket selector to be used in grafana 6.7

I have a query that needs bucket_Selector to filter records, that only display record count greater than 1. But couldn’ find a way in grafana to do so. Do someone know anything about it.

{
“size”: 0,
“query”: {
“bool”: {
“filter”: [
{
“query_string”: {
“analyze_wildcard”: true,
“query”: “*”
}
}
]
}
},
“aggs”: {
“zzz”: {
“terms”: {
“field”: “DeviceID.keyword”,
“size”: 500,
“order”: {
“abc”: “desc”
},
“min_doc_count”: 1
},
“aggs”: {
“abc”: {
“cardinality”: {
“field”: “Login.keyword”
}
},
“def”: {
“bucket_selector”: {
“buckets_path”: {
“login_value”: “abc”
},
“script”: “params.login_value >= 2”
}
}
}
}
}
}