Merge pull request #74 from tomkralidis/issue-66
support open ended range time queries closes #66
This commit is contained in:
@@ -158,10 +158,14 @@ class ElasticsearchProvider(BaseProvider):
|
||||
'range': {
|
||||
time_field: {
|
||||
'gte': time_begin,
|
||||
'lte': time_end,
|
||||
'lte': time_end
|
||||
}
|
||||
}
|
||||
}
|
||||
if time_begin == '..':
|
||||
range_['range'][time_field].pop('gte')
|
||||
elif time_end == '..':
|
||||
range_['range'][time_field].pop('lte')
|
||||
|
||||
filter_.append(range_)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user