changeset 414 | 5c6c526a7fc1 |
parent 413 | 8f29358e46da |
child 415 | 0046797e0411 |
--- a/dev/doc_agg_date.txt Thu Nov 10 15:35:27 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -{ - "size": 0, - "query": { "match_all": [] }, - "aggs": { - "datestats": { - "nested": { - "path": "creation_years" - }, - "aggs": { - "years": { - "terms": { - "field": "creation_years.year", - "size": 0, - "order": { - "_term": "asc" - } - }, - "aggs": { - "year_count": { - "sum": { - "field": "creation_years.weight" - } - } - } - } - } - } - } -}