Last modified: 2014-02-05 18:52:54 UTC
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")
Confirmed.
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