August 2019
Intermediate to advanced
560 pages
13h 41m
English
Compute the summation of the numeric field value of the records. This example aims to find the total dividends for the ACWF ETF in the cf_etf_dividend index. The total dividend amount, sum_amount, is 1.6313:
"query": { "match": { "symbol": "ACWF"}},"aggs": {"sum_amount": {"sum": {"field": "amount"}}}
Read now
Unlock full access