本文介绍了MediaWiki API-将搜索(srsearch)限制为特定类别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以将Mediawiki的srsearch
工具限制为特定类别?例如,可以限制以下搜索
Is there a way to limit Mediawiki's srsearch
facility to a particular category? For example is it possible to restrict the below search
/w/api.php?action=query&list=search&format=json&srsearch=relativity
到类别:Alert_Einstein 类别?
推荐答案
取决于您使用的搜索引擎.例如,CirrusSearch可以使用 incategory:
关键字.
Depends on what search engine you are using. CirrusSearch, for example, can do that with the incategory:
keyword.
这篇关于MediaWiki API-将搜索(srsearch)限制为特定类别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!