Permalink
Browse files

add an example date/range filter

  • Loading branch information...
1 parent cf968dd commit bbda6403ddf7b0d52f6bcb879c7202bba5ef8fb1 @hannosch hannosch committed Jan 25, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 monolith/media/chart.js
View
@@ -10,6 +10,7 @@ function drawDataRange(from, size) {
var query = {"query": {"match_all": {}},
"facets": {"facet_os": {"terms": {"field": "os"}}},
+ "filter": {"range": {"date": {"gte": "2012-02-01", "lt": "2012-03-01"}}},
"from": from,
"size": size,
"sort": [{"date": {"order" : "asc"}}]

0 comments on commit bbda640

Please sign in to comment.