Extension:MWSearch

From MediaWiki.org

Jump to: navigation, search
Manual on MediaWiki Extensions
List of MediaWiki Extensions
MWSearch

Release status: stable

Description Back-end for the MediaWiki Lucene-based search engine
Author(s) Brion Vibber and Kate Turner
MediaWiki 1.13+
Download SVN (browse)
Parameters $wgLuceneHost
$wgLucenePort
$wgLuceneDisableSuggestions
$wgLuceneDisableTitleMatches

MWSearch extension is a MediaWiki backend to fetch search results from MediaWiki Lucene-based search engine.

[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");

To load-balance with from multiple servers:

$wgLuceneHost = array( "192.168.0.1", "192.168.0.2" );

3. Installation can now be verified through Special:Version of your wiki

[edit] Installing the search engine

Lucene-search daemon needs to be running on the specified host(s). For instructions see Extension:lucene-search.

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.

Personal tools