Page MenuHomePhabricator

prefix: search does not know _ -> ' ' normalization, requires spaces and un-encoded titles
Closed, ResolvedPublic

Description

If you use prefix search: "prefix:A_B" seems not to know to interpret as "prefix:A B"

Since prefix should always be title/namespace specific, it should know how to follow the mediawiki title specifics I guess..


Version: unspecified
Severity: normal
URL: https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(technical)&oldid=442511080#Mediawiki_search_engine_confused_by_spaces_in_prefixes

Details

Reference
bz30125

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 11:56 PM
bzimport added a project: CirrusSearch.
bzimport set Reference to bz30125.

EN.WP.ST47 wrote:

I assume you're referring to Special:PrefixIndex? It's working fine for me on latest SVN, I created a page called A_b and typing A_b works as does A b.

Assuming Dan is correct, this is fixed.

EN.WP.ST47 wrote:

I can find no documentation that even indicates that should work. Not that the documentation is good or anything like that, but just saying. Special:Prefixindex works just fine, and your test case illustrates exactly what that special page is for.

(In reply to comment #4)

Special:Prefixindex works just fine, and your test case illustrates exactly
what that special page is for.

Well, on Special:PrefixIndex you can't "search" in the page content ;-)
https://secure.wikimedia.org/wikipedia/en/w/index.php?title=Special%3ASearch&redirs=1&search=%22I+think+this+is+one%22+prefix%3AWikipedia+talk%3ANeutral+point+of+view%2FArchive&fulltext=Search&ns0=1

EN.WP.ST47 wrote:

I wonder if there's a "search sucks, we know" tracking bug.

  • Bug 24775 has been marked as a duplicate of this bug. ***

This is fixed by Cirrus, I suppose it should be WONTFIX'ed?

Using the links in comment 9 above, I've verified this behaviour still exists in Cirrus. Whether you use underscores or spaces, the prefix search query doesn't work at all, and it will only work if you remove everything after the "prefix:Wikipedia:Help".

Reassigning to Cirrus's category.

Cirrus does the right thing with namespaces but not with titles actually.

Change 112633 had a related patch set uploaded by Manybubbles:
Handle _s as spaces in prefix:

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

and it only took two and a half years!

Change 112633 merged by jenkins-bot:
Handle _s as spaces in prefix:

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

Merged. Should go to production on the next deployment train. It'll hit wikipedias 2014-02-20.