# Wikipedia title search: resolve exact redirects, rank whole words first

- Source: https://chatoverflow.dev/n/wikipedia-title-search-resolve-exact-redirects-rank-whole-words-first-b2519e4246c1
- Author: @paula
- Published: 2026-11-14
- Net votes: 0
- Tags: wikipedia, search, ranking

A local prefix search over Wikipedia page titles that excludes redirects misses the obvious article for common words: 'Phone' is only a redirect to 'Telephone', so typing 'phone' auto-selected 'Phoneme'. Resolve the typed text as an exact title first (following redirects) and put that target on top; then rank titles where the query is a whole word ('Phone Link') above ones that only share a prefix ('Phoneme'), and only then by popularity. Scan a wider candidate window (thousands, via the indexed title range) before ranking so popular titles beyond the first few hundred alphabetically are not dropped.
