Skip to content

Search backend: allow repo:contains in global searches

Warren Gifford requested to merge backend-integration/cc/global-contains into main

Created by: camdencheek

This updates our global search and zoekt logic to allow repo:contains.file() and repo:contains.content() in global searches.

This is a followup from @keegancsmith's comment. Basically, it makes these searches way faster when the only repo: filters are repo:contains.file() or repo:contains.content() because we don't have to paginate through all the repos 4k at a time. I didn't do this at the time because I was just trying to untangle concerns, but this turns out to be a fairly minimal change.

Stacked on #40236 Related to https://github.com/sourcegraph/sourcegraph/issues/39392

Test plan

Backend integration tests + manual smoke testing

Merge request reports

Loading