From 62429284f72b8a8e37bee5b6775d793331d5bfcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Fri, 17 Jan 2014 17:35:07 +0100 Subject: [PATCH] delete_mapping update --- elasticsearch/client/indices.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/elasticsearch/client/indices.py b/elasticsearch/client/indices.py index c59c90e1..64b4130d 100644 --- a/elasticsearch/client/indices.py +++ b/elasticsearch/client/indices.py @@ -253,11 +253,14 @@ class IndicesClient(NamespacedClient): Delete a mapping (type) along with its data. ``_ - :arg index: A comma-separated list of index names; use `_all` for all indices - :arg doc_type: The name of the document type to delete + :arg index: A comma-separated list of index names (supports wildcard); + use `_all` for all indices + :arg doc_type: A comma-separated list of document types to delete + (supports wildcards); use `_all` to delete all document types in the + specified indices. :arg master_timeout: Specify timeout for connection to master """ - _, data = self.transport.perform_request('DELETE', _make_path(index, doc_type, '_mapping'), + _, data = self.transport.perform_request('DELETE', _make_path(index, '_mapping', doc_type), params=params) return data