Available from version 4.0.0
called right before the query is sent to ElasticSearch
Define function:
public static function onWikiSearchBeforeElasticQuery( array &$query, array &$hosts ) { ... }
Attach hook:
$wgHooks['WikiSearchBeforeElasticQuery'][] = 'MyExtensionHooks::onWikiSearchBeforeElasticQuery';
Called from:File(s): WikiSearch / src/SearchEngine.php
Function(s): doQuery

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

Details edit

  • array &$query: The ElasticSearch query.
  • array &$hosts: The hosts to execute the query on.