For processing large amounts of document, e.g. in order to reindex the repository, we cannot rely on the queryAndFetch or query API that load the results in memory.
We already expose the Elasticsearch scroll API, we need a similar API for the repository.
–
There is now a repository scroll API to retrieve large number of results from a single search request, this act like database cursor returning batch of document ids.