Page MenuHomePhabricator

Bad searches, irritating
Closed, ResolvedPublic

Description

Author: stuartlocke

Description:
When a red link is made, eg. Arbitrary page name, with spaces in it, and it is clicked, the page editing screen comes up. When the search button is clicked, it will search "Arbitrary_page_name" (with underscores) instead of just "Arbitrary page name", which is disruptive to the search results. Give it a try for yourself. -Oreo Priest talk 09:40, 5 April 2008 (UTC)

No it searches for Arbitrary page name, with no uderscores, underscores are just there in the URL, as spaces cna't be. What would be great is a search that searches for each word induvidually, rather than the phrase as a whole.--Phoenix-wiki 10:11, 5 April 2008 (UTC)

    Yes, actually, it really does search with the underscores. When you remove them from the search box and search again, the mediawiki search results alone are much more useful. When you change the search engine to Google for example, you get NO results until you manually remove the underscores. Seriously, try it yourself. -Oreo Priest talk 10:37, 5 April 2008 (UTC)

This is cut-paste from WP, as I don't really know how better to report a bug.


Version: unspecified
Severity: minor

Details

Reference
bz13616

Event Timeline

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

Bryan.TongMinh wrote:

Fixed in r32811: replace underscores in search terms by spaces.

stuartlocke wrote:

(In reply to comment #1)

Fixed in r32811: replace underscores in search terms by spaces.

I'm not sure if you say you've done this or if it's an instruction to do so, but the same problem still happens to me. I've cleared the cache, and the same thing as before still happens.

(In reply to comment #2)

(In reply to comment #1)

Fixed in r32811: replace underscores in search terms by spaces.

I'm not sure if you say you've done this or if it's an instruction to do so,
but the same problem still happens to me. I've cleared the cache, and the same
thing as before still happens.

It means he's done it, but it has yet to go live on Wikimedia sites (that'll probably happen in a few days).

Reverted in r32970 -- this causes a regression in search capabilities, as you could no longer search for terms containing underscores.

Bug is presumably due to bad link formatting in a custom 'no article' message.

en.wikipedia.org seems to be fine currently.

http://en.wikipedia.org/wiki/Arbitrary_page_name

includes a search link via Special:Search:

http://en.wikipedia.org/wiki/Special:Search/Arbitrary_page_name

which works just fine, as the underscores in the link parameter are converted to spaces.