Skip to content

Enable pagination for Zoekt

Dmitry Gruzd requested to merge 389753-zoekt-pagination into master

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

  1. Set up Zoekt integration
  2. Index a namespace
  3. Search a popular term in a project from that namespace
  4. 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.

Related to #389753 (closed)

Edited by Dmitry Gruzd

Merge request reports