lib/elasticsearch/api/actions/indices/stats.rb in elasticsearch-api-5.0.0 vs lib/elasticsearch/api/actions/indices/stats.rb in elasticsearch-api-5.0.1

- old
+ new

@@ -69,10 +69,12 @@ # no concrete indices. (This includes `_all` string or when no # indices have been specified) # @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that # are open, closed or both. (options: open, closed) # + # @option arguments [Boolean] :include_segment_file_sizes Whether to report the aggregated disk usage of each one of the Lucene index files. Only applies if segment stats are requested. (default: false) + # # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-stats.html # def stats(arguments={}) valid_parts = [ :docs, @@ -97,10 +99,11 @@ :level, :types, :ignore_indices, :ignore_unavailable, :allow_no_indices, - :expand_wildcards ] + :expand_wildcards, + :include_segment_file_sizes ] method = HTTP_GET parts = Utils.__extract_parts arguments, valid_parts path = Utils.__pathify Utils.__listify(arguments[:index]), '_stats', Utils.__listify(parts)