CirrusSearch
Elasticsearch-powered search for MediaWiki
|
InterwikiResolver suited for WMF context and uses SiteMatrix. More...
Public Member Functions | |
__construct (SearchConfig $config, \MultiHttpClient $client=null, WANObjectCache $wanCache=null, BagOStuff $srvCache=null) | |
Public Member Functions inherited from CirrusSearch\BaseInterwikiResolver | |
__construct (SearchConfig $config, MultiHttpClient $client=null, WANObjectCache $wanCache=null, BagOStuff $srvCache=null, InterwikiLookup $iwLookup=null) | |
getSisterProjectPrefixes () | |
getSisterProjectConfigs () | |
getInterwikiPrefix ( $wikiId) | |
getSameProjectWikiByLang ( $lang) | |
getSameProjectConfigByLang ( $lang) | |
Static Public Member Functions | |
static | accepts (SearchConfig $config) |
Protected Member Functions | |
loadMatrix () | |
Load the interwiki matric information The returned array must include the following keys: | |
Protected Member Functions inherited from CirrusSearch\BaseInterwikiResolver | |
minimalSearchConfig ( $wiki, array $hashConfigFlags) | |
Minimal config needed to run a search on a target wiki living on the same cluster as the host wiki. | |
Additional Inherited Members | |
Public Attributes inherited from CirrusSearch\InterwikiResolver | |
const | SERVICE = 'CirrusSearchInterwikiresolver' |
@const string service name | |
Protected Attributes inherited from CirrusSearch\BaseInterwikiResolver | |
$config | |
InterwikiResolver suited for WMF context and uses SiteMatrix.
|
static |
SearchConfig | $config |
|
protected |
Load the interwiki matric information The returned array must include the following keys:
The result of this method is stored in the current InterwikiResolver instance so it can be called only once per request.
return array[]
Reimplemented from CirrusSearch\BaseInterwikiResolver.