From f1e5cb076c927f3627506abd6485ee7fac3e92f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Fri, 17 Jan 2014 22:58:49 +0100 Subject: [PATCH] put_alias doesn't require index any more --- elasticsearch/client/indices.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/elasticsearch/client/indices.py b/elasticsearch/client/indices.py index 794d188c..ebda02aa 100644 --- a/elasticsearch/client/indices.py +++ b/elasticsearch/client/indices.py @@ -292,12 +292,14 @@ class IndicesClient(NamespacedClient): return data @query_params('timeout', 'master_timeout') - def put_alias(self, index, name, body=None, params=None): + def put_alias(self, index=None, name=None, body=None, params=None): """ Create an alias for a specific index/indices. ``_ - :arg index: The name of the index with an alias + :arg index: A comma-separated list of index names the alias should + point to (supports wildcards); use `_all` or omit to perform the + operation on all indices. :arg name: The name of the alias to be created or updated :arg body: The settings for the alias, such as `routing` or `filter` :arg master_timeout: Specify timeout for connection to master