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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user