use calendar_interval for date aggregation

This commit is contained in:
byte[] 2020-05-07 16:53:08 -04:00
parent 7e7c0c7ec9
commit 0506334046

View file

@ -34,7 +34,7 @@
"all_time": { "all_time": {
"date_histogram": { "date_histogram": {
"field": "created_at", "field": "created_at",
"interval": "day" "calendar_interval": "day"
} }
}, },
"avg_comments": { "avg_comments": {