From 6faec3d0a3ed868bdaf8d4b857b0496d97f34d6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Fri, 17 Jan 2014 23:40:50 +0100 Subject: [PATCH] human param for segments api --- elasticsearch/client/indices.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/elasticsearch/client/indices.py b/elasticsearch/client/indices.py index b3c23cbf..2ed4bf2b 100644 --- a/elasticsearch/client/indices.py +++ b/elasticsearch/client/indices.py @@ -624,7 +624,7 @@ class IndicesClient(NamespacedClient): return data @query_params('allow_no_indices', 'expand_wildcards', 'ignore_indices', - 'ignore_unavailable', 'operation_threading') + 'ignore_unavailable', 'human') def segments(self, index=None, params=None): """ Provide low level segments information that a Lucene index (shard level) is built with. @@ -641,7 +641,8 @@ class IndicesClient(NamespacedClient): ignore `missing` ones, default u'none' :arg ignore_unavailable: Whether specified concrete indices should be ignored when unavailable (missing or closed) - :arg operation_threading: TODO: ? + :arg human: Whether to return time and byte values in human-readable + format (default: false) """ _, data = self.transport.perform_request('GET', _make_path(index, '_segments'), params=params) return data