Extension:CirrusSearch/Hooks/CirrusSearchRegisterFullTextQueryClassifiers

From MediaWiki.org
Jump to navigation Jump to search
CirrusSearchRegisterFullTextQueryClassifiers
Available from version 1.32.0 (Gerrit change 441406)
Allows extensions to register fulltext query classifiers.
Define function:
public static function onCirrusSearchRegisterFullTextQueryClassifiers( ParsedQueryClassifiersRepository $repository ) { ... }
Attach hook:
$wgHooks['CirrusSearchRegisterFullTextQueryClassifiers'][] = 'MyExtensionHooks::onCirrusSearchRegisterFullTextQueryClassifiers';
Called from:File(s): CirrusSearch / includes/Parser/FTQueryClassifiersRepository.php

For more information about attaching hooks, see $1.
For examples of other extensions using this hook, see Category:CirrusSearchRegisterFullTextQueryClassifiers extensions.

This hook is a part of CirrusSearch extension .

Details[edit]

  • $repository - CirrusSearch\Parser\ParsedQueryClassifiersRepository : the repository to register new classifiers.