Manual:Enabling autocomplete in search box

Autocomplete or Search suggestions is a feature that displays a drop-down list of suggestions bellow the Search box while text is being typed. On the MediaWiki platform, this feature is provided by Ajax asynchronous queries to the database. Although the basic feature is quite limited, it can be greatly enhanced with the addition of extensions.

Using the basic feature


Edit the file LocalSettings.php and add the following entries:


 * MediaWiki 1.6 and 1.7:


 * MediaWiki 1.8 to 1.12:


 * MediaWiki 1.13 to current:


 * Notes:
 * The basic feature is case-sensitive, i.e, with the exception of the first letter which is always treated as an upper case, all other letters must be typed with exactly the same case of the searched item;
 * $wgUseAjax defaulted to false until MW 1.10, when it was changed to true;
 * $wgAjaxSearch was introduced in MW 1.8 and replaced by $wgEnableMWSuggest in MW 1.13;