Extension:CirrusSearch/Hooks/CirrusSearchAnalysisConfig

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
CirrusSearchAnalysisConfig
Available from version 1.24.0 (Gerrit change 104766)
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): CirrusSearch / 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

  • $config - multi-dimensional configuration array for analysis of various languages and fields
  • $builder - CirrusSearch\Maintenance\AnalysisConfigBuilder object handling the building <translate> (introduced in <tvar

See also