Extension:CirrusSearch/Hooks/CirrusSearchAnalysisConfig

From Linux Web Expert

Revision as of 17:09, 16 August 2020 by imported>SamanthaNguyen (remove "CirrusSearch hooks" category, superseded by category auto-gen'd by Template:ExtensionHook)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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