Extension:SearchExtraNS

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
SearchExtraNS

Release status: stable

Implementation Search
Description Searches extra specified namespaces if no direct match is found.
Author(s) Roland Unger, Hans Musil
License No license specified
Download
Hooks used
SearchAfterNoDirectMatch
Check usage and version matrix
Bugs: list open list all report

SearchExtraNS is an extension to improve search results.

Called after a search has no match for the exact result, but before any case variant is tested, it tries to find a direct match in extra specified namespaces, that is the namespace mentioned as prefix of the keyword. A side-effect is that the advanced search will no longer restrict results to the namespaces you select, but will always be extended to such namespace too.

Installation [edit]

  1. Download the extension
  2. Add in LocalSettings.php:
require_once( "$IP/extensions/SearchExtraNS/SearchExtraNS.php" );