Skip to content

Accept multiple queries in search and fuzzy search#904

Open
vinistock wants to merge 1 commit into
mainfrom
vs_accept_multiple_queries
Open

Accept multiple queries in search and fuzzy search#904
vinistock wants to merge 1 commit into
mainfrom
vs_accept_multiple_queries

Conversation

@vinistock

Copy link
Copy Markdown
Member

I noticed that in some use cases, we want to search the graph for more than one query. Invoking graph.search multiple times means traversing all declarations and spawning threads for each invocation.

This PR starts accepting multiple queries instead, which allows us to search the entire graph in one go.

I also noticed that our empty query matching (which returns all declarations) was happening inside of the parallel loop, but that's unnecessary work. Empty matches everything, so we just need to return early before we even spawn any threads.

@vinistock vinistock self-assigned this Jul 3, 2026
@vinistock vinistock requested a review from a team as a code owner July 3, 2026 15:09
@vinistock vinistock added the enhancement New feature or request label Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant