Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support body in DELETE requests #79

Closed

Conversation

szajbus
Copy link

@szajbus szajbus commented Nov 12, 2019

In clear scroll API, Elasticsearch requires scroll_id to be passed in request body:

DELETE /_search/scroll
{
    "scroll_id" : "DXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAD4WYm9laVYtZndUQlNsdDcwakFMNjU1QQ=="
}

https://www.elastic.co/guide/en/elasticsearch/reference/6.4/search-request-scroll.html

@tanguilp tanguilp mentioned this pull request Jan 25, 2021
@adjivas
Copy link

adjivas commented Jun 28, 2022

Hello, Thank's a lot for your work :) this PR will be merged?

@szajbus
Copy link
Author

szajbus commented Jul 10, 2022

I think this is not really needed anymore, you can simply do

Elasticsearch.delete(cluster, "/_search/scroll/#{scroll_id}")

@szajbus szajbus closed this Jul 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants