Page MenuHomePhabricator

Search query with hyphen and wildcard
Closed, DeclinedPublic

Description

Author: vic_kag

Description:
Searching words containing both hyphens and a wildcard symbol (*) returns empty result. For example:

https://en.wikipedia.org/w/api.php?action=query&list=search&srlimit=5&srprop=&srredirects=1&format=jsonfm&srsearch=New-York*

returns nothing, while same query without wildcards

https://en.wikipedia.org/w/api.php?action=query&list=search&srlimit=5&srprop=&srredirects=1&format=jsonfm&srsearch=New-York

works just fine.


Version: wmf-deployment
Severity: normal
Whiteboard: cirrus-fixed

Details

Reference
bz56738

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:17 AM
bzimport set Reference to bz56738.
bzimport added a subscriber: Unknown Object (MLST).

The same results are returned by Special:Search, so this isn't a bug in the API. I'll leave it up to you whether you want it closed as such or if you want to reassign it to the proper search-related component.

vic_kag wrote:

Thanks, Brad. I hope I've chosen the right Component this time...

"Search" is for MediaWiki's built-in search, repointing to the (old) WMF-specific search.

Verified that this problem is fixed in CirrusSearch. As we're migrating from Lucene to CirrusSearch, I'm closing this as RESOLVED WONTFIX.