add '_mapping' to exists_type path (#473)

This adds ‘_mapping’ to the path for exists_type to avoid the
deprecation warning consistent with:
https://github.com/elastic/elasticsearch/commit/a4ea7e72234b480f89e8c59b
b12061be11172db1
This commit is contained in:
Noah Wood
2016-11-30 05:53:56 -06:00
committed by Honza Král
parent 1780214a19
commit 2bc407e633
+2 -2
View File
@@ -247,8 +247,8 @@ class IndicesClient(NamespacedClient):
for param in (index, doc_type):
if param in SKIP_IN_PATH:
raise ValueError("Empty value passed for a required argument.")
return self.transport.perform_request('HEAD', _make_path(index, doc_type),
params=params)
return self.transport.perform_request('HEAD', _make_path(index,
'_mapping', doc_type), params=params)
@query_params('allow_no_indices', 'expand_wildcards', 'ignore_unavailable',
'master_timeout', 'timeout', 'update_all_types')