扩展:TitleKey

This page is a translated version of the page Extension:TitleKey and the translation is 27% complete.
Outdated translations are marked like this.
MediaWiki扩展手冊
OOjs UI icon advanced-invert.svg
TitleKey
发布状态: 稳定版
实现 搜索
描述 提供标题前缀搜索建议后端
作者 Brion Vibber (Brion VIBBER讨论)
最新版本 持续更新
MediaWiki 1.25+
数据庫更改
titlekey
许可协议 GNU通用公眾授權條款2.0或更新版本
下载
README
翻譯TitleKey扩展,若在translatewiki.net可用

检查使用和版本矩阵。

问题 尚未完成的工作 · 回報錯誤

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 .

安装

  • 下载文件,并将其放置在您extensions/文件夹中的TitleKey目录内。
  • 将下列代码放置在您的LocalSettings.php的底部:
    wfLoadExtension( 'TitleKey' );
    
  • 运行更新脚本,它将自动创建此扩展必须依赖的数据库表。
  • 运行"rebuildTitleKeys.php"脚本(这需要命令行访问):
php extensions/TitleKey/maintenance/rebuildTitleKeys.php
  •   完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。

致使用MediaWiki 1.27或更早版本的用户:

上面的说明介绍的是安装此扩展的新方法,它使用wfLoadExtension()。 如果您需要在早期版本(MediaWiki 1.27和更早版本)中安装此扩展,而不是wfLoadExtension( 'TitleKey' );,您需要使用:

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

Known problems

(see topic).

  • It breaks any extension that relies on 前缀搜索 which also includes 扩展:模板精灵 .
  • With MediaWiki 1.35 or earlier it breaks search suggestions for pages that are not in the main namespace. (The Gerrit patch fixing this issue has been released as part of MediaWiki 1.36: Gerrit change 641277.)