do not set ES dates as raw (#1015)
* do not set ES dates as raw * safeguard
This commit is contained in:
@@ -266,7 +266,8 @@ class ElasticsearchProvider(BaseProvider):
|
||||
|
||||
sp = sort['property']
|
||||
|
||||
if self.fields[sp]['type'] == 'string':
|
||||
if (self.fields[sp]['type'] == 'string'
|
||||
and self.fields[sp].get('format') != 'date'):
|
||||
LOGGER.debug('setting ES .raw on property')
|
||||
sort_property = '{}.raw'.format(self.mask_prop(sp))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user