From MediaWiki.org
Jump to navigation Jump to search

Other languages:
English • ‎日本語
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.svg

Release status:Extension status stable

ImplementationTemplate:Extension#type Search
DescriptionTemplate:Extension#description Searches extra specified namespaces if no direct match is found.
Author(s)Template:Extension#username Roland Unger, Hans Musil
LicenseTemplate:Extension#license No license specified
Hooks usedTemplate:Extension#hook

Translate the SearchExtraNS extension if it is available at translatewiki.net

Check usage and version matrix.


Open tasks · Report a bug

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.


  • Download and place the file(s) in a directory called SearchExtraNS in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/SearchExtraNS/SearchExtraNS.php";
  • YesY Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.