From 2bc407e63308690faaf48eaab10f49dcd82078a3 Mon Sep 17 00:00:00 2001 From: Noah Wood Date: Wed, 30 Nov 2016 05:53:56 -0600 Subject: [PATCH] add '_mapping' to exists_type path (#473) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This adds ‘_mapping’ to the path for exists_type to avoid the deprecation warning consistent with: https://github.com/elastic/elasticsearch/commit/a4ea7e72234b480f89e8c59b b12061be11172db1 --- elasticsearch/client/indices.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elasticsearch/client/indices.py b/elasticsearch/client/indices.py index c820ec5d..143fb298 100644 --- a/elasticsearch/client/indices.py +++ b/elasticsearch/client/indices.py @@ -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')