Min aggregation

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset