I want to use scroll for my pagination. I know that in the initial search request I can specify the "size",
Is it possible to specify the size in the subsequent scroll requests.
My use case is like this
In first batch get 10
In second batch get 10
In third batch I want to get only 5
Is there any way to tell scroll API that I want these many records only?
Why use scroll queries for pagination of small result sets? Each scroll query will keep a context that has a certain lifetime and puts a hold on the underlying segments, potentially preventing merging.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.