Merge pull request #2267 from alexdrans/es_source_content_type_fix

Setting source_content_type on ES queries
This commit is contained in:
Arik Fraimovich 2018-02-01 14:23:52 +02:00 committed by GitHub
commit 6f7e95d419
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -420,7 +420,7 @@ class ElasticSearch(BaseElasticSearch):
if error:
return None, error
params = {"source": json.dumps(query_dict)}
params = {"source": json.dumps(query_dict), "source_content_type": "application/json"}
logger.debug("Using URL: %s", url)
logger.debug("Using params : %s", params)
r = requests.get(url, params=params, auth=self.auth)