Fix missing 'Open the file to view all results' link in Zoekt

What does this MR do and why?

This MR fixes a bug where the "Open the file to view all results" link was missing in Zoekt search results when there are more matches than the displayed limit.

Problem

When multi_match is enabled, max_line_match_results_per_file was limited to the chunk size (options[:multi_match].max_chunks_size). This prevented Zoekt from knowing there are additional matches in the file, so the "Open the file to view all results" link didn't appear.

Solution

Always return UNLIMITED for max_line_match_results_per_file, regardless of whether multi_match is enabled. This allows Zoekt to:

  1. Detect when there are more matches than displayed
  2. Show the "Open the file to view all results" link appropriately

Before vs After

Before After
Screenshot_2026-01-13_at_22.57.05 Screenshot_2026-01-13_at_23.07.25

How to set up and validate locally

  1. Search for a common term like test in a project with many matches (e.g., FlightJS)
  2. Look for files that have more matches than the display limit
  3. Verify that the "Open the file to view all results" link appears for those files

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Closes #585926 (closed)

Merge request reports

Loading