Every time a query is executed, the results are calculated and returned to the user in real time. In Elasticsearch, there is no deterministic order for records—pagination on a big block of values can bring inconsistency between results due to added and deleted documents, and also documents with the same score.
The scrolling query tries to resolve this kind of problem, giving a special cursor that allows the user to uniquely iterate all the documents.