From 586704000ea5dea5c5cab0b189ef7612b415ed5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Fri, 19 Jun 2015 14:13:00 +0200 Subject: [PATCH] Add human arg to indices.create and get_settings --- elasticsearch/client/indices.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/elasticsearch/client/indices.py b/elasticsearch/client/indices.py index 5e3b006b..aba808f8 100644 --- a/elasticsearch/client/indices.py +++ b/elasticsearch/client/indices.py @@ -102,8 +102,8 @@ class IndicesClient(NamespacedClient): params=params, body=body) return data - @query_params('allow_no_indices', 'expand_wildcards', 'ignore_unavailable', - 'local') + @query_params('allow_no_indices', 'expand_wildcards', 'flat_settings', + 'human', 'ignore_unavailable', 'local') def get(self, index, feature=None, params=None): """ The get index API allows to retrieve information about one or more indexes. @@ -115,6 +115,9 @@ class IndicesClient(NamespacedClient): concrete indices (default: false) :arg expand_wildcards: Whether wildcard expressions should get expanded to open or closed indices (default: open) + :arg flat_settings: Return settings in flat format (default: false) + :arg human: Whether to return version and creation date values in human- + readable format., default False :arg ignore_unavailable: Ignore unavailable indexes (default: false) :arg local: Return local information, do not retrieve the state from master node (default: false) @@ -556,7 +559,7 @@ class IndicesClient(NamespacedClient): return data @query_params('expand_wildcards', 'ignore_indices', 'ignore_unavailable', - 'flat_settings', 'local') + 'flat_settings', 'local', 'human') def get_settings(self, index=None, name=None, params=None): """ Retrieve settings for one or more (or all) indices. @@ -572,6 +575,8 @@ class IndicesClient(NamespacedClient): :arg ignore_unavailable: Whether specified concrete indices should be ignored when unavailable (missing or closed) :arg flat_settings: Return settings in flat format (default: false) + :arg human: Whether to return version and creation date values in human- + readable format., default False :arg local: Return local information, do not retrieve the state from master node (default: false) """