Extension:SphinxSearch/SphinxSearchBeforeQuery

From MediaWiki.org
Jump to: navigation, search
SphinxSearchBeforeQuery
Available from version 0.7.2 (r73342)
Allow messing with search term and sphinx client before search is executed

Define function:
public static function onSphinxSearchBeforeQuery( &$term, &$cl ) { ... }

Attach hook:
$wgHooks['SphinxSearchBeforeQuery'][] = 'MyExtensionHooks::onSphinxSearchBeforeQuery';
Called from: SphinxMWSearch.php

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


[edit] Details

  • $term: string search term(s)
  • $cl: object SphinxClient
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox