Extension:MWSearch

From MediaWiki.org

Jump to: navigation, search

         

Manual on MediaWiki Extensions
List of MediaWiki Extensions
Crystal Clear action run.png
MWSearch

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

Subversion [Help]
Browse source code

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:

$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.

[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.