Skip to content

feat(search): whole words, relevance ranking and typo-tolerant search - #172

Merged
rgdevment merged 2 commits into
mainfrom
feat/search-whole-words
Oct 16, 2026
Merged

rgdevment merged 2 commits into
mainfrom
feat/search-whole-words

Conversation

@rgdevment

@rgdevment rgdevment commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

A word followed by a space must now appear on its own: links, paths, emails and longer words no longer match it, while the word still being typed keeps matching by prefix. Results are ranked by relevance (bm25 weighted by field, exact spelling above prefix), with the date only breaking ties; images and items without words of their own go last unless labelled, and an order picked by hand is kept. When nothing matches exactly, words of four letters or more are matched with one or two typos against the index vocabulary. The page-ten budget rises to 60 ms, since ranking scores every match on each page.

@rgdevment rgdevment changed the title feat(search): a word followed by a space matches only on its own, and texts rank above images feat(search): whole words, relevance ranking and typo-tolerant search Oct 16, 2026
@rgdevment
rgdevment merged commit 205b06e into main Oct 16, 2026
22 of 23 checks passed
@rgdevment
rgdevment deleted the feat/search-whole-words branch October 16, 2026 02:28
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