Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Extension:TitleKey

From mediawiki.org
Translate this page
Languages:
MediaWiki extensions manual
TitleKey
Release status: stable
ImplementationSearch
DescriptionProvides a case-insensitive page title prefix search
Author(s)Brooke Vibbertalk
Latest versioncontinuous updates
MediaWiki1.25+
Database changesYes
Tablestitlekey
LicenseGNU General Public License 2.0 or later
Download
README
Translate the TitleKey extension if it is available at translatewiki.net
IssuesOpen tasks ·Report a bug

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

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

This extension provides no benefit if you are usingCirrusSearch.

Installation

[edit]
  • Download and move the extractedTitleKey folder to yourextensions/ directory.
    Developers and code contributors should install the extensionfrom Git instead, using:
    cdextensions/gitclonehttps://gerrit.wikimedia.org/r/mediawiki/extensions/TitleKey
  • Add the following code at the bottom of yourLocalSettings.php file:
    wfLoadExtension('TitleKey');// For MW 1.43.0 and above, no further configuration is needed.// For MW 1.42.x (use SearchEngineMySQL, SearchEnginePostgres, or SearchEngineSqlite depending on your $wgDBtype)$wgSearchType=MediaWiki\Extension\TitleKey\SearchEngineMySQL::class;// For MW 1.39.x to 1.41.x$wgSearchType=MediaWiki\Extension\TitleKey\SearchEngine::class;
  • Run theupdate script which will automatically create the necessary database tables that this extension needs.
  • YesDone – Navigate toSpecial:Version on your wiki to verify that the extension is successfully installed.

Maintenance

[edit]

The RebuildTitleKeys maintenance script can be used at any time to rebuild the title index (this requires command-line access):

$path/to/mediawiki/maintenance/run.phpRebuildTitleKeys

Or, for MediaWiki before 1.40:

$phppath/to/mediawiki/extensions/TitleKey/maintenance/rebuildTitleKeys.php
This extension is included in the following wiki farms/hosts and/or packages:This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm.
Retrieved from "https://www.mediawiki.org/w/index.php?title=Extension:TitleKey&oldid=6951172"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp