Manual:Hooks/CirrusSearchAnalysisConfig

From MediaWiki.org
Jump to navigation Jump to search
CirrusSearchAnalysisConfig
Available from version 1.24.0
Allows to hook into the configuration for analysis
Define function:
public static function onCirrusSearchAnalysisConfig( &$config ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"CirrusSearchAnalysisConfig": "MyExtensionHooks::onCirrusSearchAnalysisConfig"
	}
}

For MediaWiki ≤1.25:

$wgHooks['CirrusSearchAnalysisConfig'][] = 'MyExtensionHooks::onCirrusSearchAnalysisConfig';
Called from:File(s): includes/Maintenance/AnalysisConfigBuilder.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:CirrusSearchAnalysisConfig extensions.

This hook is a part of CirrusSearch extension .

Details[edit]

  • $config - multi-dimensional configuration array for analysis of various languages and fields

See also[edit]