Skip to content

Github mirror of MediaWiki extension TitleKey - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)

License

Notifications You must be signed in to change notification settings

wikimedia/mediawiki-extensions-TitleKey

Repository files navigation

This extension provides case-insensitive matches for a few points in
MediaWiki's functionality:

* "go" exact title matches
* Prefix-based searches in OpenSearch (Firefox plugin) and internal AJAX searches

It does not provide complete case-insensitivity for title linking within the wiki.

== Database schema ==

A 'titlekey' table is added to the wiki's database, which maintains a case-folded
copy of each page's title. This is then binary-indexed for matching and sorting.

The table must be present for the wiki to function once the extension is enabled,
and it must be populated for the title match functions to pick up matches.


== Installation ==

To enable the extension, add the following line to your LocalSettings.php file:

  wfLoadExtension( 'TitleKey' );


 * Set $wgSearchType to 'TitleKeyMySQL', 'TitleKeyPostgres' or 'TitleKeySqlite'

You must then create and populate the new database table.

The easiest way to do this is to run MediaWiki's standard updaters:

  php maintenance/update.php

If you do not have command-line access to your server, you can manually
apply the titlekey.sql file's commands to your database (check for proper
table prefix, etc).

== Repopulating the titlekey table ==

The titlekey table can be repopulated by hand by running the maintenance/rebuildTitleKeys.php
command-line script.

About

Github mirror of MediaWiki extension TitleKey - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published