devel:event:search_query_fullpage
This is an old revision of the document!
Table of Contents
SEARCH_QUERY_FULLPAGE
- Description:
- Filter/reorder search results
- DefaultAction:
- Performs a search
- Preventable:
- yes
- Added:
- 2008-08-11
This event is signalled in ft_pageSearch() in inc/fulltext.php. You can use this event to post process the search results AFTER event advise to filter/reorder them.
Passed Data
data['query']
⇒ (string) the search querydata['highlight']
⇒ (array reference) to array to hold words to be highlighted
added after 2018-04-05:
data['sort']
⇒ (string) whether the results are sorted by number of hits or last changed time (mtime
)data['after']
⇒ (int|string) only show results with an modified time after this date, accepts timestap or strtotime argumentsdata['before']
⇒ (int|string) only show results with an modified time before this date, accepts timestap or strtotime arguments
Plugins handling this event
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.
See also
devel/event/search_query_fullpage.1527607650.txt.gz · Last modified: 2018-05-29 17:27 by andi