Translations of this page?:

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 search 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)

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_pagelookup.txt · Last modified: 2011/12/13 14:55 by 82.227.225.244
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate