sourcegraph / sourcegraph-public-snapshot

Code AI platform with Code Search & Cody
https://sourcegraph.com
Other
10.1k stars 1.28k forks source link

symbols: Fall back to plain prefix search if regex search doesn't return within 1s #31297

Open chrismwendt opened 2 years ago

chrismwendt commented 2 years ago

Once prefix matches are optimized (see https://github.com/sourcegraph/sourcegraph/issues/31296), the symbols service could always fall back to that as a fast-path if regex search doesn't return within some timeout less than the 5s timeout from the frontend.

There'd need to be some communication with the UI when that fallback occurs which explains the different semantics.

/cc @sourcegraph/search-platform

github-actions[bot] commented 2 years ago

Heads up @benvenker @lguychard - the "team/search-product" label was applied to this issue.

keegancsmith commented 7 months ago

I'm not sure if this is still relevant / worth tracking? Maybe @sourcegraph/team-graph has opinions?