CirrusSearch
Elasticsearch-powered search for MediaWiki
|
InterwikiResolver suited for WMF context and uses SiteMatrix. More...
Public Member Functions | |
__construct (SearchConfig $config, MultiHttpClient $client, WANObjectCache $wanCache, InterwikiLookup $iwLookup) | |
Public Member Functions inherited from CirrusSearch\BaseInterwikiResolver | |
getSisterProjectPrefixes () | |
getSisterProjectConfigs () | |
getInterwikiPrefix ( $wikiId) | |
getSameProjectWikiByLang ( $lang) | |
getSameProjectConfigByLang ( $lang) | |
Static Public Member Functions | |
static | accepts (SearchConfig $config, ?ExtensionRegistry $extensionRegistry=null) |
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 | |
SearchConfig | $config |
InterwikiLookup | $interwikiLookup |
WANObjectCache | $wanCache |
InterwikiResolver suited for WMF context and uses SiteMatrix.
CirrusSearch\SiteMatrixInterwikiResolver::__construct | ( | SearchConfig | $config, |
MultiHttpClient | $client, | ||
WANObjectCache | $wanCache, | ||
InterwikiLookup | $iwLookup ) |
SearchConfig | $config | |
MultiHttpClient | $client | http client to fetch cirrus config |
WANObjectCache | $wanCache | Cache object for caching repeated requests |
InterwikiLookup | $iwLookup |
Reimplemented from CirrusSearch\BaseInterwikiResolver.
|
static |
SearchConfig | $config | |
ExtensionRegistry | null | $extensionRegistry |
|
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.