Extension:CirrusSearch/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( array &$config, AnalysisConfigBuilder $builder ) { ... }
Attach hook:
$wgHooks['CirrusSearchAnalysisConfig'][] = 'MyExtensionHooks::onCirrusSearchAnalysisConfig';
Called from:File(s): includes/Maintenance/AnalysisConfigBuilder.php

For more information about attaching hooks, see Manual:Hooks.
For examples of other 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
  • $builder - CirrusSearch\Maintenance\AnalysisConfigBuilder object handling the building (introduced in 1.31)

See also[edit]