Page MenuHomePhabricator

Redirect pages with all-uppercase words don't get picked up when searching in lowercase
Open, LowPublic

Description

If a page contains an all-uppercase "word" and is a redirect, the search Go function will not take you to the redirect page if you search in lowercase. For example, say the page "Test ONE" redirects to the Main Page. Searching "test one" and using Go will not catch the redirect, it will take you to the search results page. If the page is NOT a redirect page, then it works as it should. If you search "test one" and "Test ONE" exists as a non-redirect, you will be taken to the page.

It should be noted that the opposite situation works fine. If a redirect page is called "Test one" and you search for "test ONE", the redirect will catch like normal. So there is a very specific case where it does not work that should be fixed.


Version: 1.22.0
Severity: normal

Details

Reference
bz54836

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:31 AM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz54836.
bzimport added a subscriber: Unknown Object (MLST).

Thanks for taking the time to report this!

On which site does this happen? (Exact and complete steps to reproduce are always welcome - some wikis use CirrusSearch, some use the old MWSearch)

Base MediaWiki install with default search. Note that for whatever reason, Wikipedia doesn't have this problem. I've decided to illustrate the problem and compare to Wikipedia:

http://i.imgur.com/jbQWahK.png

I should mention that the issue occurs whether the all-uppercase "word" contains numbers or not. In the illustrated example there is a number, but remember that the "test ONE" case runs into the same problem.

Not a problem with MWSearch/lsearchd or really with Cirrus either (moving to core as it's more relevant there, I suppose).

To get this desired result (case-insensitive search redirection) you'll need to install the TitleKey extension. In an ideal world we should probably move TitleKey to core.

This should probably be marked INVALID as it's not really a bug?

MPhamWMF subscribed.

Closing out low/est priority tasks over 6 months old with no activity within last 6 months in order to clean out the backlog of tickets we will not be addressing in the near term. Please feel free to reopen if you think a ticket is important, but bare in mind that given current priorities and resourcing, it is unlikely for the Search team to pick up these tasks for the indefinite future. We hope that the requested changes have either been addressed by or made irrelevant by work the team has done or is doing -- e.g. upgrading Elasticsearch to a newer version will solve various ES-related problems -- or will be subsumed by future work in a more generalized way.

RhinosF1 removed a project: Discovery-Search.
RhinosF1 subscribed.

Re-opening tasks and removing from team workboard per IRC feedback given yesterday and discussion with MPham.