summaryrefslogtreecommitdiffstats
path: root/tests/files/search/POST_search_agg_date_histogram.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/files/search/POST_search_agg_date_histogram.txt')
-rw-r--r--tests/files/search/POST_search_agg_date_histogram.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/files/search/POST_search_agg_date_histogram.txt b/tests/files/search/POST_search_agg_date_histogram.txt
new file mode 100644
index 0000000..731af13
--- /dev/null
+++ b/tests/files/search/POST_search_agg_date_histogram.txt
@@ -0,0 +1,11 @@
+POST /sales/_search?size=0
+{
+ "aggs": {
+ "sales_over_time": {
+ "date_histogram": {
+ "field": "date",
+ "calendar_interval": "month"
+ }
+ }
+ }
+}