From a49371b55356f4842d44b2cb28ea725794120bb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Thu, 2 Jan 2014 20:00:59 +0100 Subject: [PATCH] Reflect new ES api for get aliases. see https://github.com/elasticsearch/elasticsearch/issues/4539 for more details --- Changelog.rst | 7 +++++++ elasticsearch/client/indices.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Changelog.rst b/Changelog.rst index a34d40d3..63945467 100644 --- a/Changelog.rst +++ b/Changelog.rst @@ -3,6 +3,13 @@ Changelog ========= +0.4.5 (dev) +----------- + + * `get_alias` now has `name` as another optional parameter due to issue #4539 + in es repo. Note that the order of params have changed so if you are not + using keyword arguments this is a breaking change. + 0.4.4 (2013-12-23) ------------------ diff --git a/elasticsearch/client/indices.py b/elasticsearch/client/indices.py index 294c618c..bf43480c 100644 --- a/elasticsearch/client/indices.py +++ b/elasticsearch/client/indices.py @@ -301,7 +301,7 @@ class IndicesClient(NamespacedClient): return True @query_params('allow_no_indices', 'expand_wildcards', 'ignore_indices', 'ignore_unavailable') - def get_alias(self, name, index=None, params=None): + def get_alias(self, index=None, name=None, params=None): """ Retrieve a specified alias. ``_