do not set ES dates as raw (#1015)

* do not set ES dates as raw

* safeguard
This commit is contained in:
Tom Kralidis
2022-10-14 12:54:25 -04:00
committed by GitHub
parent 93bbc12aac
commit 3016cb73c6
+2 -1
View File
@@ -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: