Enable pagination for Zoekt
What does this MR do and why?
At present we just revert back to Elasticsearch if a user requests page 2.
This MR removes this limitation and allows pages 2+. Zoekt doesn't have the concept of pagination, so we request page * per_page documents to reach that page.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
- Set up Zoekt integration
- Index a namespace
- Search a popular term in a project from that namespace
- Ensure that you can reach page 2 and it is not using Elasticsearch
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #389753 (closed)
Edited by Dmitry Gruzd