lib/elasticsearch/api/actions/cat/indices.rb in elasticsearch-api-8.0.1 vs lib/elasticsearch/api/actions/cat/indices.rb in elasticsearch-api-8.1.0
- old
+ new
@@ -34,16 +34,17 @@
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Boolean] :include_unloaded_segments If set to true segment stats will include stats for segments that are not currently loaded into memory
# @option arguments [String] :expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both. (options: open, closed, hidden, none, all)
# @option arguments [Hash] :headers Custom HTTP headers
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/cat-indices.html
#
def indices(arguments = {})
- arguments = arguments.clone
headers = arguments.delete(:headers) || {}
- body = nil
+ body = nil
+
+ arguments = arguments.clone
_index = arguments.delete(:index)
method = Elasticsearch::API::HTTP_GET
path = if _index