CirrusSearch
Elasticsearch-powered search for MediaWiki
|
SearchConfig implemenation backed by a simple HashConfig. More...
Public Member Functions | |
__construct (array $settings, array $flags=[], ?Config $inherited=null, ?SearchProfileServiceFactoryFactory $searchProfileServiceFactoryFactory=null) | |
getWikiId () | |
Allow overriding Wiki ID. | |
getHostWikiConfig () | |
isLocalWiki () | |
Public Member Functions inherited from CirrusSearch\SearchConfig | |
__construct (?SearchProfileServiceFactoryFactory $searchProfileServiceFactoryFactory=null) | |
Create new search config for the current wiki. | |
getClusterAssignment () | |
clearCachesForTesting () | |
Reset any cached state so testing can ensures changes to global state are reflected here. | |
has ( $name) | |
get ( $name) | |
makeId ( $pageId) | |
makePageId ( $docId) | |
Convert an elasticsearch document id back into a mediawiki page id. | |
getUserLanguage () | |
Get user's language. | |
getElement ( $configName,... $path) | |
Get chain of elements from config array. | |
isCrossProjectSearchEnabled () | |
isCrossLanguageSearchEnabled () | |
isCompletionSuggesterEnabled () | |
Public Attributes | |
const | FLAG_INHERIT = 'inherit' |
Public Attributes inherited from CirrusSearch\SearchConfig | |
const | INDEX_BASE_NAME = 'CirrusSearchIndexBaseName' |
const | WIKI_ID_MAGIC_WORD = '__wikiid__' |
Additional Inherited Members | |
Static Public Member Functions inherited from CirrusSearch\SearchConfig | |
static | newFromGlobals () |
Produce new configuration from globals. | |
static | getNonCirrusConfigVarNames () |
for unit tests purpose only | |
Protected Member Functions inherited from CirrusSearch\SearchConfig | |
setSource (Config $source) | |
For Unit tests. | |
SearchConfig implemenation backed by a simple HashConfig.
CirrusSearch\HashSearchConfig::__construct | ( | array | $settings, |
array | $flags = [], | ||
?Config | $inherited = null, | ||
?SearchProfileServiceFactoryFactory | $searchProfileServiceFactoryFactory = null ) |
array | $settings | config vars |
string[] | $flags | customization flags:
|
Config | null | $inherited | (only useful when the inherit flag is set) |
SearchProfileServiceFactoryFactory | null | $searchProfileServiceFactoryFactory |
CirrusSearch\HashSearchConfig::getHostWikiConfig | ( | ) |
Reimplemented from CirrusSearch\SearchConfig.
CirrusSearch\HashSearchConfig::getWikiId | ( | ) |
CirrusSearch\HashSearchConfig::isLocalWiki | ( | ) |
Reimplemented from CirrusSearch\SearchConfig.