From 0940d2a5d6e96e9408ce6bbe95f8f74b23c377ce Mon Sep 17 00:00:00 2001 From: Honza Kral Date: Thu, 20 Jun 2013 23:27:18 +0200 Subject: [PATCH] Update to new api specs --- elasticsearch/client/indices.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/elasticsearch/client/indices.py b/elasticsearch/client/indices.py index 1783cb18..03e37a01 100644 --- a/elasticsearch/client/indices.py +++ b/elasticsearch/client/indices.py @@ -11,7 +11,7 @@ class IndicesClient(NamespacedClient): :arg index: The name of the index to scope the operation :arg body: The text on which the analysis should be performed :arg analyzer: The name of the analyzer to use - :arg field: The name of the field to + :arg field: Use the analyzer configured for this field (instead of passing the analyzer name) :arg filters: A comma-separated list of filters to use for the analysis :arg format: Format of the output, default u'detailed' :arg index: The name of the index to scope the operation @@ -53,7 +53,7 @@ class IndicesClient(NamespacedClient): Delete index in Elasticsearch http://www.elasticsearch.org/guide/reference/api/admin-indices-delete-index/ - :arg index: A list of indices to delete, `None` if all indices should be removed. + :arg index: A comma-separated list of indices to delete; use `_all` or empty string to delete all indices :arg timeout: Explicit operation timeout """ status, data = self.transport.perform_request('DELETE', _make_path(index), params=params) @@ -89,7 +89,7 @@ class IndicesClient(NamespacedClient): return True @query_params('ignore_conflicts', 'timeout') - def put_mapping(self, index, body, doc_type=None, params=None): + def put_mapping(self, index, doc_type, body, params=None): """ The put mapping API allows to register specific mapping definition for a specific type. http://www.elasticsearch.org/guide/reference/api/admin-indices-put-mapping/