summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2014-12-01 23:53:37 +0100
committerChristian Pointner <equinox@spreadspace.org>2014-12-01 23:53:37 +0100
commit58aece87f55af644623f393c12e49f75866129ad (patch)
treeeeffa16335ce2bcdb03eaac3958b2c0eedaf469a
parentes5: range and histgram aggs work now (diff)
es5: stats vs. avg
-rw-r--r--src/es5/es-query.json4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/es5/es-query.json b/src/es5/es-query.json
index bc45515..ccc6db3 100644
--- a/src/es5/es-query.json
+++ b/src/es5/es-query.json
@@ -21,8 +21,8 @@
"size": 0
},
"aggregations": {
- "avg_clients": {
- "avg": { "field": "data.client-count" }
+ "clients": {
+ "stats": { "field": "data.client-count" }
}
}
}