Skip to content

feat(search): rank results by relevance, not by manager - #37

Merged
QaidVoid merged 2 commits into
run-and-terminalfrom
search-ranking
Aug 10, 2026
Merged

feat(search): rank results by relevance, not by manager#37
QaidVoid merged 2 commits into
run-and-terminalfrom
search-ranking

Conversation

@QaidVoid

Copy link
Copy Markdown
Member

Results were concatenated in adapter order, so what you saw first depended on which manager was asked first rather than on what you typed.

They are now ranked: exact name, then prefix, then substring, then an abbreviation whose letters appear in order, and last anything matched on its description. Shorter names win within a tier.

The abbreviation scorer is deliberately not edit distance. fd to fd-find is distance 5, worse than an unrelated short name, so Levenshtein would rank an obvious prefix match below noise.

Stacked on #36.

@QaidVoid
QaidVoid merged commit 0c8f65c into main Aug 10, 2026
1 check passed
@QaidVoid QaidVoid mentioned this pull request Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant