Page MenuHomePhabricator

Underscore is rejected by the incategory search parameter
Closed, ResolvedPublic

Description

Author: folengo

Description:
In the search box, incategory:"Irish writers", using a space, works fine while incategory:"Irish_writers" using an underscore, will not give any result.

As a consequence, {{PAGENAMEE}} is obsolete as far as parameter incategory:"" is concerned.

Could you provide a new magic word (call it {{PAGENAMEF}}) that would be both "URL-friendly" and "incategory-search-friendly" ?

Or can you do something so that "Irish_writers" with an underscore can be used after "incategory:" ?


Version: unspecified
Severity: enhancement

Details

Reference
bz10822

Event Timeline

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

rainman wrote:

Fixed in r24628. Underscores in category names will now always be converted to spaces.

However, I discourage usage of incategory keyword, it's still not fully functional (as of lucene-search 2.0.2).
e.g. it doesn't work properly if you use categories within templates, like {{stub}} on en.wiki ..

folengo wrote:

Thanks, Robert. Do you have any idea when your fix becomes operational on a given Wikipedia ?

Refresh [[Special:Version]] until r24628 will appear. I think it will take about five to ten days to test and update changes.

[Merging "MediaWiki extensions/Lucene Search" into "Wikimedia/lucene-search2", see bug 46542. You can filter bugmail for: search-component-merge-20130326 ]