August 2019
Intermediate to advanced
560 pages
13h 41m
English
Compute the average of the numeric field value of the records. The following example aims to find the average change of the ACWF ETF in the cf_etf_hist_price index, and the value is 0.0624:
"query": { "match": { "symbol": "ACWF"}},"aggs": {"acwf_avg_close_price":{"avg": { "field": "change" }}}
Read now
Unlock full access