Extension:Search Suggest

See Manual:$wgEnableMWSuggest for the new core feature.

What can this extension do?
This extension takes the idea of MediaWiki's built-in Ajax search, and makes it much more useful. It places the search results directly under the search bar, and does not take over the content (like the built in feature does).

The search looks for the word (or whatever you are looking for) within the article names, and not just at the beginning by default. There is an option to change this setting.

Usage
You should be able to just install it, reload your cache, and see it work. If it is working, you will see article names appear under the search bar when searching.

Installation

 * Create a new folder in your extensions called SearchSuggest
 * To install this extension, add the following to LocalSettings.php:


 * Ajax must also be enabled. This is the default from MediaWiki 1.11 to newer versions. For older versions of MediaWiki, you might need to add the following to LocalSettings.php:


 * Monobook
 * As the code is here, it only works in the Monobook skin. This can be easily changed in the JavaScript.

change searchBody of var searchdiv = document.getElementById("searchBody"); to the name of the div you want the results to appear in.

PHP
Copy the following, and save it in the SearchSuggest folder as SearchSuggest.php

See below for the CSS and JavaScript

JavaScript
Copy the following, and save it in the SearchSuggest folder as SearchSuggest.js

CSS
Copy the following, and save it in the searchsuggest folder as SearchSuggest.css (this can all be changed without issues on-wiki by editing your wiki's MediaWiki:Common.css)