CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Default factory to build and prepare search profiles. More...
Public Member Functions | |
__construct (InterwikiResolver $resolver, SearchConfig $hostWikiConfig, BagOStuff $localServerCache, CirrusSearchHookRunner $cirrusSearchHookRunner, UserOptionsLookup $userOptionsLookup, ExtensionRegistry $extensionRegistry) | |
loadService (SearchConfig $config, ?WebRequest $request=null, ?UserIdentity $user=null, $forceHook=false) | |
Public Attributes | |
const | SERVICE_NAME = self::class |
Name of the service declared in MediaWikiServices. | |
Default factory to build and prepare search profiles.
The factory will load these defaults:
NOTE: extensions may load their own repositories and overriders.
CirrusSearch\Profile\SearchProfileServiceFactory::loadService | ( | SearchConfig | $config, |
?WebRequest | $request = null, | ||
?UserIdentity | $user = null, | ||
$forceHook = false ) |
SearchConfig | $config | |
WebRequest | null | $request | |
UserIdentity | null | $user | |
bool | $forceHook | force running the hook even if using HashSearchConfig |