扩展:TitleKey
Appearance
TitleKey 发行状态: 稳定版 |
|
---|---|
实现 | 搜索 |
描述 | 提供不区分大小写的标题前缀搜索 |
作者 | Brooke Vibber留言 |
最新版本 | 持续更新 |
MediaWiki | 1.25+ |
数据库更改 | 是 |
表 | titlekey |
许可协议 | GNU通用公眾授權條款2.0或更新版本 |
下載 | README |
季度下載量 | 62 (Ranked 73rd) |
前往translatewiki.net翻譯TitleKey扩展 | |
問題 | 开启的任务 · 报告错误 |
TitleKey扩展提供了一个不区分大小写的页面标题前缀搜索。 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 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 .
安裝
- 下载文件,并将解压后的
TitleKey
文件夹移动到extensions/
目录中。
开发者和代码贡献人员应从Git安装扩展,输入:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/TitleKey - 将下列代码放置在您的LocalSettings.php 的底部:
wfLoadExtension( 'TitleKey' ); // For MW 1.42.0 and later (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;
- 运行更新脚本,它将自动创建此扩展必须依赖的数据库表。
- 完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。
Maintenance
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 RebuildTitleKeys
$ php path/to/mediawiki/extensions/TitleKey/maintenance/rebuildTitleKeys.php
此扩展在以下wiki农场/托管网站和/或软件包中提供: 這不是一份權威名單。 即使某些wiki农场/托管网站和/或软件包未在这里列出,它们也可能提供此扩展。 请检查你的wiki农场/托管网站或软件包以确认提供情况。 |
Categories:
- Stable extensions/zh
- Search extensions/zh
- GPL licensed extensions/zh
- Extensions in Wikimedia version control/zh
- LoadExtensionSchemaUpdates extensions/zh
- PageDeleteComplete extensions/zh
- PageMoveCompleting extensions/zh
- PageSaveComplete extensions/zh
- PageUndeleteComplete extensions/zh
- All extensions/zh
- Extensions included in BlueSpice/zh
- Extensions included in Miraheze/zh
- Extensions included in ProWiki/zh
- Extensions included in WikiForge/zh