lib/elasticsearch/api/actions/clear_scroll.rb in elasticsearch-api-7.8.1 vs lib/elasticsearch/api/actions/clear_scroll.rb in elasticsearch-api-7.9.0.pre

- old
+ new

@@ -27,11 +27,11 @@ # *Deprecation notice*: # A scroll id can be quite large and should be specified as part of the body # Deprecated since version 7.0.0 # # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.8/search-request-body.html#_clear_scroll_api + # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.x/search-request-body.html#_clear_scroll_api # def clear_scroll(arguments = {}) headers = arguments.delete(:headers) || {} arguments = arguments.clone @@ -41,14 +41,14 @@ method = Elasticsearch::API::HTTP_DELETE path = if _scroll_id "_search/scroll/#{Utils.__listify(_scroll_id)}" else "_search/scroll" - end + end params = {} body = arguments[:body] perform_request(method, path, params, body, headers).body end end - end + end end