Resolve "Show [N] more result is missing in Zoekt Search"
What does this MR do and why?
The front end expects for there to be 5 line match results: https://gitlab.com/gitlab-org/gitlab/-/blob/952f13c14efd7e69609bd7030a7f7fe036459038/app/assets/javascripts/search/results/constants.js#L1. This MR updates zoekt search parameters to fetch that many line matches.
AI Summary
This change increases the default number of search results shown per file from 3 to 5. When users search for code, the system will now display up to 5 matching lines from each file instead of the previous limit of 3, giving users more context and results from their searches. The corresponding tests were also updated to reflect this new default value.
References
Related to #560227 (closed)
Screenshots or screen recordings
| Before | After |
|---|---|
![]() |
![]() |
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

