Extension:SearchExtraNS

Category:Extensions without an imageCategory:GPL licensed extensions
MediaWiki extensions manual
SearchExtraNS
Release status: stableCategory:Stable extensions
Implementation SearchCategory:Search extensions
Description Searches extra specified namespaces if no direct match is found.
Author(s) Roland Unger, Hans Musil
Compatibility policy Snapshots releases along with MediaWiki. Master is not backward compatible.Category:Extensions with release branches compatibility policy
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
  • $wgSearchExtraNamespaces
Quarterly downloads 6 (Ranked 110th)
Translate the SearchExtraNS extension if it is available at translatewiki.net
Issues Open tasks · Report a bug
Category:All extensions

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

  • Download and move the extracted SearchExtraNS folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/SearchExtraNS
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'SearchExtraNS' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Category:Extensions used on Wikimedia#SearchExtraNS
Category:All extensions Category:Extensions in Wikimedia version control Category:Extensions used on Wikimedia Category:Extensions with release branches compatibility policy Category:Extensions without an image Category:GPL licensed extensions Category:SearchAfterNoDirectMatch extensions Category:Search extensions Category:Stable extensions