Error
Request ID: W-62LApAAEoAAHHylHQAAABT
[W-62LApAAEoAAHHylHQAAABT] /w/api.php?action=wbsearchentities&search=A&format=json&language=en&uselang=en&type=item&useCirrus=0 ErrorException from line 309 of /srv/mediawiki/php-1.33.0-wmf.6/includes/debug/MWDebug.php: PHP Warning: Using wb_terms table for wbsearchentities API action but not using search-related fields of terms table. This results in degraded search experience, please enable the useTermsTableSearchFields setting. [Called from Closure$#10 in /srv/mediawiki/php-1.33.0-wmf.6/extensions/Wikibase/repo/WikibaseRepo.entitytypes.php at line 178]
#0 /srv/mediawiki/php-1.33.0-wmf.6/includes/debug/MWDebug.php(309): MWExceptionHandler::handleError(integer, string, string, integer, array, array) #1 /srv/mediawiki/php-1.33.0-wmf.6/includes/debug/MWDebug.php(164): MWDebug::sendMessage(string, array, string, integer) #2 /srv/mediawiki/php-1.33.0-wmf.6/includes/GlobalFunctions.php(1104): MWDebug::warning(string, integer, integer, string) #3 /srv/mediawiki/php-1.33.0-wmf.6/extensions/Wikibase/repo/WikibaseRepo.entitytypes.php(178): wfLogWarning(string) #4 /srv/mediawiki/php-1.33.0-wmf.6/extensions/Wikibase/repo/includes/Api/TypeDispatchingEntitySearchHelper.php(49): Closure$#10(WebRequest) #5 /srv/mediawiki/php-1.33.0-wmf.6/extensions/Wikibase/repo/includes/Api/SearchEntities.php(101): Wikibase\Repo\Api\TypeDispatchingEntitySearchHelper->getRankedSearchResults(string, string, string, integer, boolean) #6 /srv/mediawiki/php-1.33.0-wmf.6/extensions/Wikibase/repo/includes/Api/SearchEntities.php(211): Wikibase\Repo\Api\SearchEntities->getSearchEntries(array) #7 /srv/mediawiki/php-1.33.0-wmf.6/includes/api/ApiMain.php(1576): Wikibase\Repo\Api\SearchEntities->execute() #8 /srv/mediawiki/php-1.33.0-wmf.6/includes/api/ApiMain.php(531): ApiMain->executeAction() #9 /srv/mediawiki/php-1.33.0-wmf.6/includes/api/ApiMain.php(502): ApiMain->executeActionWithErrorHandling() #10 /srv/mediawiki/php-1.33.0-wmf.6/api.php(87): ApiMain->execute() #11 /srv/mediawiki/w/api.php(3): include(string) #12 {main}
Impact
Wikidata entity search is case-sensitive, which it isn’t supposed to be, making it harder to find entities.
Notes
This seems to be because we’re for some reason using wb_terms for search instead of CirrusSearch? Did some config get messed up?
(Contrary to what the error message suggests, we should not enable the useTermsTableSearchFields setting, since we shouldn’t be using the terms table at all here.)
For some reason, this doesn’t always seen to happen. @Nikki and @Lydia_Pintscher can reproduce it, I can’t (but I can see the warnings in logstash).