Simple range filter added to Memory backend

This commit is contained in:
Krzysztof Trzewiczek
2012-08-08 17:44:47 +02:00
parent 51c81a5a7e
commit d445629318
3 changed files with 62 additions and 17 deletions

View File

@@ -495,9 +495,15 @@ my.Query = Backbone.Model.extend({
_filterTemplates: {
term: {
type: 'term',
// TODO do we need this attribute here?
field: '',
term: ''
},
range: {
type: 'range',
start: '',
stop: ''
},
geo_distance: {
distance: 10,
unit: 'km',