Skip to content

Commit 5867040

Browse files
committed
Add human arg to indices.create and get_settings
1 parent 8b0ad42 commit 5867040

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

elasticsearch/client/indices.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ def create(self, index, body=None, params=None):
102102
params=params, body=body)
103103
return data
104104

105-
@query_params('allow_no_indices', 'expand_wildcards', 'ignore_unavailable',
106-
'local')
105+
@query_params('allow_no_indices', 'expand_wildcards', 'flat_settings',
106+
'human', 'ignore_unavailable', 'local')
107107
def get(self, index, feature=None, params=None):
108108
"""
109109
The get index API allows to retrieve information about one or more indexes.
@@ -115,6 +115,9 @@ def get(self, index, feature=None, params=None):
115115
concrete indices (default: false)
116116
:arg expand_wildcards: Whether wildcard expressions should get expanded
117117
to open or closed indices (default: open)
118+
:arg flat_settings: Return settings in flat format (default: false)
119+
:arg human: Whether to return version and creation date values in human-
120+
readable format., default False
118121
:arg ignore_unavailable: Ignore unavailable indexes (default: false)
119122
:arg local: Return local information, do not retrieve the state from
120123
master node (default: false)
@@ -556,7 +559,7 @@ def delete_template(self, name, params=None):
556559
return data
557560

558561
@query_params('expand_wildcards', 'ignore_indices', 'ignore_unavailable',
559-
'flat_settings', 'local')
562+
'flat_settings', 'local', 'human')
560563
def get_settings(self, index=None, name=None, params=None):
561564
"""
562565
Retrieve settings for one or more (or all) indices.
@@ -572,6 +575,8 @@ def get_settings(self, index=None, name=None, params=None):
572575
:arg ignore_unavailable: Whether specified concrete indices should be ignored
573576
when unavailable (missing or closed)
574577
:arg flat_settings: Return settings in flat format (default: false)
578+
:arg human: Whether to return version and creation date values in human-
579+
readable format., default False
575580
:arg local: Return local information, do not retrieve the state from
576581
master node (default: false)
577582
"""

0 commit comments

Comments
 (0)