From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:TitleKey and the translation is 0% complete.
Outdated translations are marked like this.
Other languages:
English • ‎Türkçe • ‎français • ‎עברית • ‎中文 • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
Release status: stable
Implementation Search
Description אנא הוסף כותרת לתחילית החיפוש בבקאנד
Author(s) Brion Vibber (Brion VIBBERשיחה)
Latest version continuous updates
MediaWiki 1.25+
MediaWiki 1.36 Not formally tested
MediaWiki 1.34 Not formally tested
MediaWiki 1.32 Not formally tested
Database changes Yes
Tables titlekey
License GNU General Public License 2.0 or later
Translate the TitleKey extension if it is available at translatewiki.net

Check usage and version matrix.

Issues Open tasks · Report a bug

The TitleKey extension provides a case-insensitive page title prefix search. It uses a separate table for the keys, so it can be deployed without an expensive rebuild of core tables, and uninstalled later in preference for a different search extension such as CirrusSearch .

For the average site administrator, the benefit of this extension is that it allows search suggestions (e.g. from Opensearch API) to be case-insensitive.

This extension provides no benefit if you are using CirrusSearch .


  • Download and place the file(s) in a directory called TitleKey in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'TitleKey' );
  • Run the update script which will automatically create the necessary database tables that this extension needs.
  • Run the "rebuildTitleKeys.php" script (this requires command-line access):
php extensions/TitleKey/maintenance/rebuildTitleKeys.php
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

To users running MediaWiki 1.27 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension(). If you need to install this extension on these earlier versions (MediaWiki 1.27 and earlier), instead of wfLoadExtension( 'TitleKey' );, you need to use:

require_once "$IP/extensions/TitleKey/TitleKey.php";

Known problems

(see topic).

  • It breaks any extension that relies on Prefixsearch which also includes TemplateWizard .
  • It breaks search suggestions for pages that are not in the main namespace. (There is an unmerged Gerrit patch that would fix this issue: Gerrit change 641277.)