[source, ruby]
----
response = client.search(
  index: 'exams',
  size: 0,
  body: {
    aggregations: {
      grades_stats: {
        stats: {
          field: 'grade',
          missing: 0
        }
      }
    }
  }
)
puts response
----
