summaryrefslogtreecommitdiffstats
path: root/tests/files/search/GET_search_agg_composite_early.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/files/search/GET_search_agg_composite_early.txt')
-rw-r--r--tests/files/search/GET_search_agg_composite_early.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/files/search/GET_search_agg_composite_early.txt b/tests/files/search/GET_search_agg_composite_early.txt
new file mode 100644
index 0000000..c0ab7cd
--- /dev/null
+++ b/tests/files/search/GET_search_agg_composite_early.txt
@@ -0,0 +1,15 @@
+GET /some-index/_search
+{
+ "size": 0,
+ "track_total_hits": false,
+ "aggs": {
+ "my_buckets": {
+ "composite": {
+ "sources": [
+ { "user_name": { "terms": { "field": "user_name" } } },
+ { "date": { "date_histogram": { "field": "timestamp", "calendar_interval": "1d", "order": "desc" } } }
+ ]
+ }
+ }
+ }
+}