Last modified: 2014-02-05 18:52:54 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 T62439, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60439 - LuceneSearch is not a valid backend when "New search" (CirrusSearch) enabled in Beta features
LuceneSearch is not a valid backend when "New search" (CirrusSearch) enabled ...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
CirrusSearch (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Kunal Mehta (Legoktm)
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-26 10:17 UTC by Sergey Leschina
Modified: 2014-02-05 18:52 UTC (History)
5 users (show)

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


Attachments

Description Sergey Leschina 2014-01-26 10:17:49 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")
Comment 1 Nik Everett 2014-01-29 16:41:47 UTC
Confirmed.
Comment 2 Kunal Mehta (Legoktm) 2014-02-04 19:10:30 UTC
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.
Comment 3 Gerrit Notification Bot 2014-02-04 19:17:24 UTC
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
Comment 4 Gerrit Notification Bot 2014-02-04 19:20:08 UTC
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

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


Navigation
Links