扩展:TitleKey

From mediawiki.org
This page is a translated version of the page Extension:TitleKey and the translation is 44% complete.
Outdated translations are marked like this.
MediaWiki扩展手册
TitleKey
发行状态: 稳定版
实现 搜索
描述 提供标题前缀搜索建议后端
作者 Brooke Vibber留言
最新版本 持续更新
MediaWiki 1.25+
数据库更改
titlekey
许可协议 GNU通用公眾授權條款2.0或更新版本
下載
README
季度下載量 69 (Ranked 82nd)
前往translatewiki.net翻譯TitleKey扩展
問題 开启的任务 · 报告错误

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目录内。
    开发者和代码贡献人员应从Git安装扩展,输入:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleKey
  • 将下列代码放置在您的LocalSettings.php 的底部:
    wfLoadExtension( 'TitleKey' );
    
  • 运行更新脚本,它将自动创建此扩展必须依赖的数据库表。
  • 运行"rebuildTitleKeys.php"脚本(这需要命令行访问):
    $ path/to/mediawiki/maintenance/run RebuildTitleKeys
    
    Or, for MediaWiki prior to 1.40:
    $ php path/to/mediawiki/extensions/TitleKey/maintenance/rebuildTitleKeys.php
    
  • Yes 完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。