I would like to use the stats or extended_stats aggregation on the _score field but can\'t find any examples of this being done (i.e., seems like you can only u
_score
doc.score doesn't seem to work anymore. Using _score seems to work perfectly.
doc.score
Example:
{ ..., "aggregations" : { "grades_stats" : { "stats" : { "script" : "_score" } } } }