August 2019
Intermediate to advanced
560 pages
13h 41m
English
The purpose of this is to perform aggregation on the field from the parent document after grouping by the field from the nested object:
"aggs": {"etf_category_distribution_on_dividend_type":{"nested": {"path":"announcement"}, "aggs":{"by_dividend_type": { "terms": {"field":"announcement.type"}, "aggs": {"total_by_etf_category":{"reverse_nested":{}, "aggs": { "category":{"terms": {"field": "category"}}}}}}}}}
Read now
Unlock full access