MediaWiki API 結果

这是JSON格式的HTML实现。HTML对调试很有用,但不适合应用程序使用。

指定format参数以更改输出格式。要查看JSON格式的非HTML实现,设置format=json

参见完整文档,或API帮助以获取更多信息。

{
    "error": {
        "code": "internal_api_error_Elastica\\Exception\\Connection\\HttpException",
        "info": "[e98fa06fddfae5c7cbb95ff5] Exception caught: Couldn't connect to host, Elasticsearch down?",
        "*": "Elastica\\Exception\\Connection\\HttpException at /var/www/mediawiki/extensions/Elastica/vendor/ruflin/elastica/lib/Elastica/Transport/Http.php(187)\n#0 /var/www/mediawiki/extensions/Elastica/vendor/ruflin/elastica/lib/Elastica/Request.php(193): Elastica\\Transport\\Http->exec(Elastica\\Request, array)\n#1 /var/www/mediawiki/extensions/Elastica/vendor/ruflin/elastica/lib/Elastica/Client.php(674): Elastica\\Request->send()\n#2 /var/www/mediawiki/extensions/Elastica/vendor/ruflin/elastica/lib/Elastica/Client.php(706): Elastica\\Client->request(string, string, array, array)\n#3 /var/www/mediawiki/extensions/Elastica/vendor/ruflin/elastica/lib/Elastica/Index.php(562): Elastica\\Client->requestEndpoint(Elasticsearch\\Endpoints\\Indices\\Mapping\\Get)\n#4 /var/www/mediawiki/extensions/Elastica/vendor/ruflin/elastica/lib/Elastica/Index.php(95): Elastica\\Index->requestEndpoint(Elasticsearch\\Endpoints\\Indices\\Mapping\\Get)\n#5 /var/www/mediawiki/extensions/CirrusSearch/includes/Api/MappingDump.php(33): Elastica\\Index->getMapping()\n#6 /var/www/mediawiki/includes/api/ApiMain.php(1579): CirrusSearch\\Api\\MappingDump->execute()\n#7 /var/www/mediawiki/includes/api/ApiMain.php(535): ApiMain->executeAction()\n#8 /var/www/mediawiki/includes/api/ApiMain.php(506): ApiMain->executeActionWithErrorHandling()\n#9 /var/www/mediawiki/api.php(94): ApiMain->execute()\n#10 {main}"
    }
}