Extension:CirrusSearch/Hooks/CirrusSearchSimilarityConfig
(Redirected from Manual:Hooks/CirrusSearchSimilarityConfig)
CirrusSearchSimilarityConfig | |
---|---|
Available from version 1.35.0 (Gerrit change 559058) Allows to customize and add new similarities to the index settings. |
|
Define function: | public static function onCirrusSearchSimilarityConfig( array &$similarity ) { ... }
|
Attach hook: | $wgHooks['CirrusSearchSimilarityConfig'][] = 'MyExtensionHooks::onCirrusSearchSimilarityConfig';
|
Called from: | File(s): CirrusSearch / includes/Maintenance/AnalysisConfigBuilder.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:CirrusSearchSimilarityConfig extensions.
Details
edit&$similarity
- multi-dimensional configuration array for the similarities. See the documentation of the Elasticsearch similarity module.