1
有沒有方法可以使用MediaWiki API搜索數字0的文章?如何使用MediaWiki API專門搜索數字0
我試過api.php ? action=query & list=search & srsearch=0
,並返回:
"error": {
"code": "srsearch-text-disabled",
"info": "text search is disabled",
"*": "See https://en.wikipedia.org/w/api.php for API usage"
}
這樣做的工作,但在這種情況下,無關的字符可能會影響結果的指數排名。比較[srsearch = 1](https://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=1)和[srsearch = .1](https://en.wikipedia.org/w /api.php?action=query&list=search&srsearch=.1) –