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

Release status: stable

Implementation Search, API
Description OpenSearch XML interface provides for text extracts
Author(s) Brion Vibber (Brion VIBBERtalk)
MediaWiki 1.19 - 1.24
PHP 5.3+
License GPLv2 or Later
  • $wgOpenSearchAdvertiseXml
  • $wgOpenSearchDescriptionLength
Hooks used

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

Check usage and version matrix; code metrics


Open tasks · Report a bug

The OpenSearchXml extension provides search suggestions in OpenSearch XML format. This extension allows the search box to "suggest" search terms as searcher types in the query.

Installation[edit | edit source]

  • Download and place the file(s) in a directory called OpenSearchXml in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
require_once "$IP/extensions/OpenSearchXml/OpenSearchXml.php";
$wgEnableMWSuggest = true; #Not needed if using MediaWiki 1.20+
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.