Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Search backend: allow repo:contains in global searches#40239

Merged
camdencheek merged 2 commits into
mainfrom
backend-integration/cc/global-contains
Aug 12, 2022
Merged

Search backend: allow repo:contains in global searches#40239
camdencheek merged 2 commits into
mainfrom
backend-integration/cc/global-contains

Conversation

@camdencheek

@camdencheek camdencheek commented Aug 11, 2022

Copy link
Copy Markdown
Member

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

@cla-bot cla-bot Bot added the cla-signed label Aug 11, 2022
@camdencheek camdencheek requested a review from a team August 11, 2022 01:00
@sourcegraph-bot

sourcegraph-bot commented Aug 11, 2022

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff 10a9ad6...f062cde.

Notify File(s)
@beyang internal/search/job/jobutil/job.go
internal/search/repos/repos.go
internal/search/zoekt/query.go
@keegancsmith internal/search/job/jobutil/job.go
internal/search/repos/repos.go
internal/search/zoekt/query.go

@camdencheek camdencheek added the team/search-product Issues owned by the search product team label Aug 11, 2022
@rvantonder rvantonder requested a review from novoselrok August 12, 2022 03:20
Base automatically changed from cc/global-refactor to main August 12, 2022 19:58
@camdencheek camdencheek force-pushed the backend-integration/cc/global-contains branch from 25596b0 to f062cde Compare August 12, 2022 19:59
@camdencheek camdencheek enabled auto-merge (squash) August 12, 2022 19:59
@camdencheek camdencheek merged commit 57bf297 into main Aug 12, 2022
@camdencheek camdencheek deleted the backend-integration/cc/global-contains branch August 12, 2022 20:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/search-product Issues owned by the search product team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants