Extension:CirrusSearch/Hooks/CirrusSearchFulltextQueryBuilder

From MediaWiki.org
Jump to navigation Jump to search
CirrusSearchFulltextQueryBuilder
Available from version 1.31.0
Removed in version 1.34.0
Allows to override fulltext query builder settings or query builder itself.
Define function:
public static function onCirrusSearchFulltextQueryBuilder( FullTextQueryBuilder &$builder, SearchContext $context ) { ... }
Attach hook:
$wgHooks['CirrusSearchFulltextQueryBuilder'][] = 'MyExtensionHooks::onCirrusSearchFulltextQueryBuilder';
Called from:File(s): CirrusSearch / includes/Searcher.php

For more information about attaching hooks, see $1.
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