December 2017
Intermediate to advanced
434 pages
10h 29m
English
The average aggregation finds an average across all documents in the querying context:
GET bigginsight/_search{ "aggregations": { "download_average": { 1 "avg": { 2 "field": "downloadTotal" } } }, "size": 0 }
The only notable differences from the sum aggregation are as follows:
The response structure is identical but the value field will now represent the average of the requested field.
The min and max aggregations are the exactly same.
Read now
Unlock full access