- Description:
- Filter/reorder search results
- DefaultAction:
- Performs a search
- Preventable:
- yes
- Added:
- 2008-08-11
This event is signalled in ft_pageLookup() in inc/fulltext.php. You can use this event to post process the search results AFTER event advise to filter/reorder them.
before 2010-06-26:
$data['id'] ⇒ (string) the page name fragment to search on
$data['pageonly'] ⇒ (bool) true, search page names only; false search namespaces and page names
results are in simple numerically indexed array
after 2010-06-26:
$data['id'] ⇒ (string) the page name fragment to search on
$data['in_ns'] ⇒ (bool) false, search page names only; true search namespaces and page names
$data['in_title'] ⇒ (bool) true, search in page titles (first heading) as well
$data['has_titles'] ⇒ (bool) always true
results are in associative array (pagid ⇒ title)
The following plugins are known to handle this event and their source code may be a good start for understanding and implementing a handler yourself.