Extension:OpenSearchXml

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

Release status:Extension status stable

ImplementationTemplate:Extension#type Search, API
DescriptionTemplate:Extension#description OpenSearch XML interface provides for text extracts
Author(s)Template:Extension#username Brion Vibber (Brion VIBBERtalk)
MediaWikiTemplate:Extension#mediawiki 1.19 - 1.24
PHPTemplate:Extension#php 5.3+
LicenseTemplate:Extension#license GPLv2 or Later
Download
ParametersTemplate:Extension#parameters
  • $wgOpenSearchAdvertiseXml
  • $wgOpenSearchDescriptionLength
Hooks usedTemplate:Extension#hook
OpenSearchUrlsManual:Hooks/OpenSearchUrls

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

Check usage and version matrix.

IssuesPhabricator

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]

  • 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.