DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:search_query_fullpage

This is an old revision of the document!


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 query
  • data['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 arguments
  • data['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

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki