Page MenuHomePhabricator

LuceneSearch is not a valid backend when "New search" (CirrusSearch) enabled in Beta features
Closed, ResolvedPublic

Description

As documented API supports some search engines in list=search query. In Wikipedia it works good with default settings. But when you enable "New search" (CirrusSearch) in Beta features, "srbackend" parameter is no longer supported and generates an error:
"Unrecognized parameter: 'srbackend'" (XML) or
'{"servedby":"mw1190","error":{"code":"srunknown_srbackend","info":"Unrecognized value for parameter 'srbackend': LuceneSearch"}}' (JSON).

Example: https://ru.wikipedia.org/w/api.php?action=query&list=search&srbackend=LuceneSearch&srlimit=5&srprop=&srredirects=1&format=json&srsearch=Ubuntu* (need to enable "New search")


Version: unspecified
Severity: normal

Details

Reference
bz60439

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:02 AM
bzimport added a project: CirrusSearch.
bzimport set Reference to bz60439.

Looking at https://noc.wikimedia.org/conf/highlight.php?file=CirrusSearch-common.php, I think this is because LuceneSearch is not listed in $wgSearchTypeAlternatives, since it's the $wgSearchType...unless overridden with the BetaFeature.

Change 111242 had a related patch set uploaded by Legoktm:
Make the old $wgSearchType available as an alternative if the BetaFeature is enabled

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

Change 111242 merged by jenkins-bot:
Make the old $wgSearchType available as an alternative if the BetaFeature is enabled

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