Hi all,
I would like to know if we can figure out the page number ( result set number) by using the scroll_id that Elasticsearch provides.
I use Elasticsearch-7.4.
Regards,
Mohan
Hi all,
I would like to know if we can figure out the page number ( result set number) by using the scroll_id that Elasticsearch provides.
I use Elasticsearch-7.4.
Regards,
Mohan
No, the scroll ID does not contain any such information. You should treat it as an opaque identifier.
Hi,
Thanks for answering @DavidTurner.
I am working on paginating results, so i am trying out scroll feature.
Is it possible to traverse back using scroll id. because i noticed that i am getting same scroll id every time but i get next set of results as expected.
Can some one explain how this scroll works.
Regards,
Mohan
No, you cannot go backwards with a scroll. The scroll ID is the ID of some state within Elasticsearch that records where in the search you are up to.
Pagination is supported but scroll is a different feature with a different use case. If you want pagination, use the pagination feature.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.