I'm trying to use ES v6 scroll API to fetch the data in batches from the index
The issue that I facing is in clear_scroll
function as it takes scroll_id as an argument and put it in the URL as a query param which leads to cause a failure due to the length of URL
So after seeing the implementation of clear_scroll
, https://github.com/elastic/elasticsearch-ruby/blob/main/elasticsearch-api/lib/elasticsearch/api/actions/clear_scroll.rb
I think I can try this way to put the scroll_id in the body of the request
client.clear_scroll(body: { scroll_id: scroll_id }, scroll_id: '')
So I'm just not sure if that will work properly, Any concerns?