elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb
def clear_scroll(arguments = {})
        headers = arguments.delete(:headers) || {}

        body = arguments.delete(:body)

        arguments = arguments.clone

        _scroll_id = arguments.delete(:scroll_id)

        method = Elasticsearch::API::HTTP_DELETE
        path   = if _scroll_id
                   "_search/scroll/#{Utils.__listify(_scroll_id)}"
                 else
                   "_search/scroll"
                 end
        params = {}

        perform_request(method, path, params, body, headers).body
      end
# Explicitly clears the search context for a scroll.
#
# @option arguments [List] :scroll_id A comma-separated list of scroll IDs to clear *Deprecated*
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body A comma-separated list of scroll IDs to clear if none was specified via the scroll_id parameter
#
# *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/current/clear-scroll-api.html
#
Explicitly clears the search context for a scroll.
Explicitly clears the search context for a scroll .
def clear_scroll(arguments = {})
        headers = arguments.delete(:headers) || {}
        body = arguments.delete(:body)
        arguments = arguments.clone
        _scroll_id = arguments.delete(:scroll_id)
        method = Elasticsearch::API::HTTP_DELETE
        path   = if _scroll_id
                   "_search/scroll/#{Utils.__listify(_scroll_id)}"
                 else
                   "_search/scroll"
                 end
        params = {}
        perform_request(method, path, params, body, headers).body
      end
def clear_scroll ( arguments = { } ) headers = arguments . delete ( :headers ) || { } body = arguments . delete ( :body ) arguments = arguments . clone _scroll_id = arguments . delete ( :scroll_id ) method = Elasticsearch :: API :: HTTP_DELETE path = if _scroll_id "_search/scroll/#{Utils.__listify(_scroll_id)}" else "_search/scroll" end params = { } perform_request ( method , path , params , body , headers ) . body end
Explicitly clears the search context for a scroll.
Explicitly clears the search context for a scroll .
arguments
:body A comma-separated list of scroll IDs to clear if none was specified via the scroll_id parameter *Deprecation notice*: A scroll id can be quite large and should be specified as part of the body Deprecated since version 7.0.0
: body A comma - separated list of scroll IDs to clear if none was specified via the scroll_id parameter * 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
None