DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:search_query_fullpage

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

See also

devel/event/search_query_fullpage.txt · Last modified: 2018-12-08 16:02 by torpedo

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