Page MenuHomePhabricator

Add prefix support to ApiQuerySearch (keywords/namespaces)
Closed, ResolvedPublic

Description

add two transforms applied in special:search to apiquerysearch

Compare

http://en.wikipedia.org/w/index.php?title=Special:Search&search=prefix:Wikipedia+talk:WikiProject+Spam&fulltext=Search

http://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=prefix:Wikipedia+talk:WikiProject+Spam&srwhat=text&srnamespace=5

The latter API doesn't find anything, while the GUI finds all the prefixed files.
Cause not really known. No Lucene backend to test with.

Might be due to implementation diff between specials/SpecialSearch.php and api/ApiQuerySearch.php See also diff


Version: 1.17.x
Severity: normal

Attached:

Details

Reference
bz29748

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:31 PM
bzimport set Reference to bz29748.

Comment on attachment 8754
add two transforms applied in special:search to apiquerysearch

marking patch as patch to make it viewable inline