devel:event:search_query_pagelookup
Table of Contents
SEARCH_QUERY_PAGELOOKUP
- 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 quicksearch results AFTER event advise to filter/reorder them.
Passed Data
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)
added after 2018-04-05:
data['after']
⇒ (int|string) only show results with an modified time after this date, accepts timestap orstrtotime()
argumentsdata['before']
⇒ (int|string) only show results with an modified time before this date, accepts timestap orstrtotime()
arguments
See also
- Code related to this event used in any DokuWiki's files, plugins and templates
devel/event/search_query_pagelookup.txt · Last modified: 2018-12-08 16:03 by torpedo