{
"size": 0,
"query": {
"match_all": {}
},
"aggs": {
"max_score": {
"max": {
"script": {
"lang": "painless",
"inline": "params._source.long_range.gte"
}
}
}
}
}