From 17be37a8866c617c3191fb2c20f85de4564f9eb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Fri, 17 Jan 2014 22:56:29 +0100 Subject: [PATCH] New options for indices.open --- elasticsearch/client/indices.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/elasticsearch/client/indices.py b/elasticsearch/client/indices.py index d9f14c79..6ceb1348 100644 --- a/elasticsearch/client/indices.py +++ b/elasticsearch/client/indices.py @@ -92,7 +92,8 @@ class IndicesClient(NamespacedClient): params=params, body=body) return data - @query_params('timeout', 'master_timeout') + @query_params('timeout', 'master_timeout' 'allow_no_indices', 'expand_wildcards', + 'ignore_unavailable') def open(self, index, params=None): """ Open a closed index to make it available for search. @@ -101,6 +102,13 @@ class IndicesClient(NamespacedClient): :arg index: The name of the index :arg master_timeout: Specify timeout for connection to master :arg timeout: Explicit operation timeout + :arg allow_no_indices: Whether to ignore if a wildcard indices + expression resolves into no concrete indices. (This includes `_all` string or + when no indices have been specified) + :arg expand_wildcards: Whether to expand wildcard expression to concrete indices + that are open, closed or both. + :arg ignore_unavailable: Whether specified concrete indices should be ignored + when unavailable (missing or closed) """ _, data = self.transport.perform_request('POST', _make_path(index, '_open'), params=params)