Clear scroll clarification

Hi all,

Question about scroll and clear scroll:

The documentation says that

    The initial search request and each subsequent scroll request returns a new _scroll_id 
    ā€” only the most recent       _scroll_id should be used.


scrolls should be explicitly cleared as soon as the scroll is not being used anymore

My question is
Does it mean that each loop can clear the previous scrollId, or do we have to call the clear API when everything is scrolled with the list of all scrollIds ?

thx !

1 Like


only clear the last scroll id after you are done, dont do that in between, as then your scroll would not work anymore.


1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.