Extension:CirrusSearch/Hooks/CirrusSearchFulltextQueryBuilder

CirrusSearchFulltextQueryBuilder
Available from version 1.31.0 (Gerrit change 408967)
Removed in version 1.34.0
Allows to override fulltext query builder settings or query builder itself.
Define function:
public static function onCirrusSearchFulltextQueryBuilder( CirrusSearch\Query\FulltextQueryBuilder &$builder, CirrusSearch\Search\SearchContext $context ) { ... }
Attach hook:
$wgHooks['CirrusSearchFulltextQueryBuilder'][] = 'MyExtensionHooks::onCirrusSearchFulltextQueryBuilder';
Called from:File(s): CirrusSearch / includes/Searcher.php

For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:CirrusSearchFulltextQueryBuilder extensions.

Details

edit
  • &$builder - FullTextQueryBuilder object, can be overriden by extensions
  • $context - SearchContext object