okfn/elasticsearch.js — pull request #6 by kielni (2013-08-19 21:41:18+00:00)
Title: Range and type filters

add support for range and type filters:

range filter http://www.elasticsearch.org/guide/reference/query-dsl/range-filter/
example =

{
type : 'range',
field: 'dt_field',
from: '2013-08-19T00:00:00-07:0',
to: '2013-08-19T08:00:00-07:0',
include_upper: true,
include_lower: false
}

type filter http://www.elasticsearch.org/guide/reference/query-dsl/range-filter/
example =

{
type : 'type',
value: 'message'
}