Last modified: 2012-04-05 18:25:29 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T37719, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35719 - API: list=search&srwhat=nearmatch doesn't work for titles with namespace prefix
API: list=search&srwhat=nearmatch doesn't work for titles with namespace prefix
Status: NEW
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/w/api.php?act...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-04-05 11:12 UTC by P.Copp
Modified: 2012-04-05 18:25 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description P.Copp 2012-04-05 11:12:37 UTC
If LuceneSearch is enabled (like on Wikipedia), list=search&srwhat=nearmatch doesn't work for any titles outside main namespace (see url).

This is due to ApiQuerySearch calling $search->replacePrefixes on the search term, which is incorrect for "nearmatch" mode. LuceneSearch replaces the namespace prefixes to an internal format, so "Wikipedia:About" is transformed to "[4]:About", so the title can't be found anymore.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links