0

在我们的wikibase 服务器上,我们看到一条神秘消息,一条“错误”类型的警告,而在下面的 json 片段中我们看到"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

4

1 回答 1

1

CirrusSearch README提到了一些似乎有帮助的步骤:

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.
于 2020-10-19T11:56:09.247 回答