Extension:WSSearch/Hooks/WSSearchBeforeElasticQuery

WSSearchBeforeElasticQuery
Available from version 3.5.4
called right before the query is sent to ElasticSearch
Define function:
public static function onWSSearchBeforeElasticQuery( array &$query, array &$hosts ) { ... }
Attach hook:
$wgHooks['WSSearchBeforeElasticQuery'][] = 'MyExtensionHooks::onWSSearchBeforeElasticQuery';
Called from:File(s): WSSearch / 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:WSSearchBeforeElasticQuery extensions.

DetailsEdit

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