Skip to content

searcher: hybrid search with zoekt

Administrator requested to merge k/20220412-hybrid-searcher into main

Created by: keegancsmith

This lays the ground work to consult the zoekt index for unindexed searches. We search the zoekt index for files that are the same for our commit, and then fallback to searching just the changed paths via unindexed search. This results in us fetching much less data from gitserver.

There is some changes to the frontend code to wire through a feature flag. This code is behind the feature flag "search-hybrid" to make it safer to merge and experiment.

Arch diagram: hybrid-2022-06-01-1511.excalidraw.gz

image

Test Plan: go test ./cmd/searcher/... manualling searching the megarepo locally with the feature flag enabled.

Closes https://github.com/sourcegraph/sourcegraph/issues/33656

Merge request reports

Loading