diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-12-17 13:08:39 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-12-17 13:08:39 -0800 |
commit | 8a4376fb2a3404ffaf58b6946f1086bdc793aea5 (patch) | |
tree | f040718917e9ac22017cf0598db1f0aabc6ce1b1 /tests/files/search/GET_search_agg_composite_paginate.txt | |
parent | 3940c481760fbe2c9299fb52513e7717b8e3c214 (diff) | |
download | es-public-proxy-8a4376fb2a3404ffaf58b6946f1086bdc793aea5.tar.gz es-public-proxy-8a4376fb2a3404ffaf58b6946f1086bdc793aea5.zip |
add support for date_histogram and composite aggregations
Diffstat (limited to 'tests/files/search/GET_search_agg_composite_paginate.txt')
-rw-r--r-- | tests/files/search/GET_search_agg_composite_paginate.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/files/search/GET_search_agg_composite_paginate.txt b/tests/files/search/GET_search_agg_composite_paginate.txt new file mode 100644 index 0000000..53f3a5c --- /dev/null +++ b/tests/files/search/GET_search_agg_composite_paginate.txt @@ -0,0 +1,16 @@ +GET /some-index/_search +{ + "size": 0, + "aggs": { + "my_buckets": { + "composite": { + "size": 2, + "sources": [ + { "date": { "date_histogram": { "field": "timestamp", "calendar_interval": "1d", "order": "desc" } } }, + { "product": { "terms": { "field": "product", "order": "asc" } } } + ], + "after": { "date": 1494288000000, "product": "mad max" } + } + } + } +} |