Reputation: 350
On our wikibase server we see a cryptic message, a warning of type 'error' while in the json snippet below we see "success": 1
Warning: {"type":"error","message":"cirrussearch-backend-error","params":[]} [Called from Wikibase\Search\Elastic\EntitySearchElastic::getRankedSearchResults in /var/www/html/extensions/WikibaseCirrusSearch/src/EntitySearchElastic.php at line 318] in /var/www/html/includes/debug/MWDebug.php on line 333
{
"searchinfo": {
"search": "abc"
},
"search": [],
"success": 1
}
http://api.kunstmuseum.nl/w/api.php?action=wbsearchentities&search=abc&language=en
Upvotes: 0
Views: 71
Reputation: 350
The CirrusSearch README mentioned some steps that seem to have helped:
Now run this script to generate your elasticsearch index:
php $MW_INSTALL_PATH/extensions/CirrusSearch/maintenance/UpdateSearchIndexConfig.php
Now remove $wgDisableSearchUpdate = true from LocalSettings.php. Updates should start heading to Elasticsearch.
Next bootstrap the search index by running:
php $MW_INSTALL_PATH/extensions/CirrusSearch/maintenance/ForceSearchIndex.php --skipLinks --indexOnSkip
php $MW_INSTALL_PATH/extensions/CirrusSearch/maintenance/ForceSearchIndex.php --skipParse
Note that this can take some time. For large wikis read "Bootstrapping large wikis" below.
Upvotes: 1