Performant sequential pagination ( https://www.mongodb.com/docs/atlas/atlas-search/paginate-results/ ) in ( https://www.mongodb.com/docs/atlas/atlas-search/paginate-results/ ) Atlas Search ( https://www.mongodb.com/docs/atlas/atlas-search/paginate-results/ ) is now available on MongoDB clusters 6.0.13+ and 7.0.5+ to power Infinite Scroll, Load More, and Next/Previous Page application experiences. To specify where in your Atlas Search results to start returning results from, 1) generate Base64-encoded tokens for each document within your results using the new $meta keyword searchSequenceToken, and 2) use that token as a point of reference with the new searchBefore and searchAfter options within the $search stage.
For use cases not addressed by Sequential Pagination, please vote here ( https://feedback.mongodb.com/forums/924868-atlas-search/suggestions/47716430-non-sequential-or-deep-pagination ).