Extension:GoogleSiteSearch

This extension replaces the built-in MediaWiki search functionality with Google Site Search results for your site. Results are nearly seamless; go/search logic works as expected. ("Go" goes directly to an article if it exists, searches otherwise. "Search" always searches.)  Warning: This extension requires a small modification of core MediaWiki files (2-line addition).

For an example, please see http://www.finnix.org/Special:Search?search=Debian&go=Go

Installation
1. Download the zip file and extract so files are in extensions/GoogleSiteSearch.

2. Add the following to LocalSettings.php:

3. Edit includes/SpecialSearch.php (or includes/specials/SpecialSearch.php in the MW 1.13 series, or see the latest directions) and look for the following code block:

Unfortunately there's never a good hook around when you need it, so a code call must be inserted:

You should be left with something like this:

4. Go to your MediaWiki installation, type something into the Search box. You should now see results from your site via Google Site Search.

Configuration
All configuration for GoogleSiteSearch is optional, and is performed in the LocalSettings.php file. All Google-specific variables can be configured via the $wgGoogleSiteSearchVars array. At the moment, there are no extension-specific variables.

$wgGoogleSiteSearchVars
The following example lists all defaults.

Sites that use this extension

 * TrailBrain.com example in use: http://www.trailbrain.com/wiki/index.php?search=Logan+River&go=Go
 * DS-xtra.com DS Homebrew Wiki.
 * Wikitel A Wiki devoted to telecommunications regulation
 * WikiLetras.org Brazilian Lyrics wiki
 * NotaCult.com A World of Warcraft guild
 * Discoogle.com Huge discography, lyrics and chart wiki.
 * Debatrix.org A wiki centered on debate. (not very developed yet)