summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2014-12-01 23:41:08 +0100
committerChristian Pointner <equinox@spreadspace.org>2014-12-01 23:41:08 +0100
commit52e268fd61017960b8f801952d7c9c75ad9bd571 (patch)
treef1af7c4a079f1909c629dc221a1bad988aab87d3
parentes5: histogram agg and avg clients work now (diff)
es5: range and histgram aggs work now
-rw-r--r--src/es5/es-query.json11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/es5/es-query.json b/src/es5/es-query.json
index 6fdfb81..bc45515 100644
--- a/src/es5/es-query.json
+++ b/src/es5/es-query.json
@@ -1,9 +1,18 @@
{
+ "query": {
+ "range": {
+ "start-time": {
+ "gte": "2014-10-23T19:30:00.000",
+ "lt": "2014-10-23T23:00:00.000",
+ "time_zone": "+2:00"
+ }
+ }
+ },
"aggregations": {
"timeslots": {
"date_histogram": {
"field": "start-time",
- "interval": "1h"
+ "interval": "5m"
},
"aggregations": {
"by_source": {