Page MenuHomePhabricator

Search is not showing exact matches
Closed, ResolvedPublic

Description

When searching for an article to translate in Section Translation, typing the exact name of an article does not show such article in some cases. For example, searching for "Monkey" in English does not show the Monkey article from English Wikipedia. I tried this in the test wiki. The expected result would be for the exact match to appear as the top result.

I captured some examples below:

Search query (and expected result)MonkeyBagCarrot
Current results
test.m.wikipedia.org_wiki_Special_ContentTranslation(iPhone 6_7_8).png (667×375 px, 48 KB)
test.m.wikipedia.org_wiki_Special_ContentTranslation(iPhone 6_7_8).png (667×375 px, 45 KB)
test.m.wikipedia.org_wiki_Special_ContentTranslation(iPhone 6_7_8).png (667×375 px, 44 KB)

Event Timeline

Pginer-WMF created this task.
Pginer-WMF updated the task description. (Show Details)

Change 695939 had a related patch set uploaded (by Santhosh; author: Santhosh):

[mediawiki/extensions/ContentTranslation@master] SX article search: Sort the search results correctly

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

Change 695939 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX article search: Sort the search results correctly

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

This works really well now. Thanks!