Page MenuHomePhabricator

search bar suggestions (mw_suggest+TitleKey) should first check exact matches of given prefix
Open, MediumPublic

Description

Author: llampak

Description:
Try typing (or copy-pasting) "Jeż" into the search bar on Polish Wikipedia. What you should expect is articles about hedgehogs (that's what "jeż" means in Polish). What you get, however, are loads of pages on languages (language = "język"). It happens even though "Jeż" matches exactly a redirect and there are more pages titles of which begin with this word.

I understand it's meant for people who are too lazy or don't have an appropriate keyboard, or do but can't operate it, to type ż or ę. The search bar though should reward those who take more effort typing.

I can see two solutions here:

  1. First try to match the prefix exactly and fill up with not-exact matches to the maximum number of search results. Display the exactly matched prefixes before the ones with dropped diacritics.
  1. Only add diacritics - do not drop them (sounds more viable to me, though it wouldn't work if "jęż" were a sensible word)

Version: unspecified
Severity: normal

Details

Reference
bz23609

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:08 PM
bzimport set Reference to bz23609.
bzimport added a subscriber: Unknown Object (MLST).