Merge pull request #1074 from toyama0919/master

Fix: ElasticSearch wasn't using correct type names
This commit is contained in:
Arik Fraimovich
2016-05-26 22:57:32 +03:00

View File

@@ -115,7 +115,7 @@ class BaseElasticSearch(BaseQueryRunner):
property_type = property_data.get("type", None) property_type = property_data.get("type", None)
if property_type: if property_type:
if property_type in ELASTICSEARCH_TYPES_MAPPING: if property_type in ELASTICSEARCH_TYPES_MAPPING:
mappings[property_name] = property_type mappings[property_name] = ELASTICSEARCH_TYPES_MAPPING[property_type]
else: else:
mappings[property_name] = TYPE_STRING mappings[property_name] = TYPE_STRING
#raise Exception("Unknown property type: {0}".format(property_type)) #raise Exception("Unknown property type: {0}".format(property_type))