Page MenuHomePhabricator

Cross-wiki search result should display namespace
Open, MediumPublic

Description

Example: https://en.wikipedia.org/w/index.php?search=User%3ARobin+Patterson&title=Special:Search&fulltext=Search&ns0=1

The current "Results from sister projects" is misleading (people may think the results are in main namespace). Compare the local result in the left side

Event Timeline

@Bugreporter: Assuming this task is about CirrusSearch, hence adding project tag so others can find this task when searching for tasks under that project.

EBernhardson added a subscriber: EBernhardson.

This looks to be caused by the text highlighting. If we search for User: "greetings from new zealand" the interwiki result is displayed as User:Robin Patterson, but if there is highlighting available for the title that is used and it does not include the namespace prefix. In full text search title highlighting appropriately provides the namespace prefix.

This is certainly a bug in CirrusSearch.

Change 570958 had a related patch set uploaded (by EBernhardson; owner: EBernhardson):
[mediawiki/extensions/CirrusSearch@master] Correctly prefix snippets on external titles with the namespace

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

We (Erik, really) invested time in looking into this, got rabbit-holed, and so we've put this back into the backlog.