Extension:SphinxSearch/SphinxSearchBeforeResults
From MediaWiki.org
| SphinxSearchBeforeResults | |
|---|---|
| Available from version 0.7.2 (r73342) Allow messing with various search parameters before search client is instantiated |
|
Define function: |
public static function onSphinxSearchBeforeResults( &$term, &$offset, &$namespaces, &$categories, &$exc_categories ) { ... }
|
Attach hook: |
$wgHooks['SphinxSearchBeforeResults'][] = 'MyExtensionHooks::onSphinxSearchBeforeResults'; |
| Called from: | SphinxMWSearch.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:SphinxSearchBeforeResults extensions.
Details [edit]
- $term: string search term(s)
- $offset: integer results page offset
- $namespaces: array of namespace ids to include
- $categories: array of category ids to include
- $exc_categories: array of category ids to exclude
