Page MenuHomePhabricator

search suggestions do not show exact match
Closed, ResolvedPublicBUG REPORT

Description

In de.wikipedia.org (and fr.wikipedia.org) when I type in Baltim into the "Search Wikipedia" field the first hit in the suggested dropdown list is Baltimore, but there is an existing article Baltim

See:
https://de.wikipedia.org/w/api.php?action=opensearch&format=json&formatversion=2&search=Baltim&namespace=0
https://fr.wikipedia.org/w/api.php?action=opensearch&format=json&formatversion=2&search=Baltim&namespace=0

What should have happened instead?:
When an article which matches perfectly with the characters typed in exists, this article should be the first one in the suggestion list, like it is in en.wikipedia.org

https://en.wikipedia.org/w/api.php?action=opensearch&format=json&formatversion=2&search=Baltim&namespace=0

Event Timeline

Let's spend 1/2 day to see if we can understand what's going wrong here.

Change 965171 had a related patch set uploaded (by DCausse; author: DCausse):

[mediawiki/core@master] SearchSuggestionSet: update pageMap when shrinking

https://gerrit.wikimedia.org/r/965171

Change 965171 merged by jenkins-bot:

[mediawiki/core@master] SearchSuggestionSet: update pageMap when shrinking

https://gerrit.wikimedia.org/r/965171