The min aggregation is how we will find the minimum value of the downloadTotal field in the entire index/type:
GET bigginsight/_search
{
"aggregations": {
"download_min": {
"min": {
"field": "downloadTotal"
}
}
},
"size": 0
}
Now, let's take a look at max aggregation.