Extension:MWSearch
From MediaWiki.org
|
Release status: stable |
|||
|---|---|---|---|
| Implementation | Search | ||
| Description | Back-end for the MediaWiki Lucene-based search engine | ||
| Author(s) | Brion Vibber and Kate Turner | ||
| MediaWiki | 1.13+ (1.11.1 works with only basic features) | ||
| License | MIT License | ||
| Download | Download snapshot |
||
|
|||
|
check usage (experimental) |
|||
MWSearch extension is a MediaWiki backend to fetch search results from MediaWiki Lucene-based search engine. You need Extension:lucene-search in order to run this extension.
[edit] Installation
1. Download the files from SVN
2. Add the following to your LocalSettings.php:
$wgSearchType = 'LuceneSearch'; $wgLuceneHost = '192.168.0.1'; $wgLucenePort = 8123; require_once("extensions/MWSearch/MWSearch.php"); # uncomment this if you use lucene-search 2.1 # (MUST be AFTER the require_once!) #$wgLuceneSearchVersion = 2.1;
To load-balance with from multiple servers:
3. Installation can now be verified through Special:Version of your wiki
If used on a gentoo based Server make sure dev-lang/php was emerged with the curl USE flag set, otherwise search attempts will fail because nothing will be sent to the lsearchd.
[edit] Installing the search engine
Lucene-search daemon needs to be running on the specified host(s). For instructions see Extension:lucene-search.
[edit] See also
This extension is being used on one or more of Wikimedia's wikis. It means that the extension is stable and works well enough to be used by such high traffic websites. A full list of the extensions installed on a particular wiki is produced by Special:Version on that wiki.