Topic on Project:Support desk

Search auto complete - EnableMWSuggest

10
213.123.203.181 (talkcontribs)

I'm trying to enable auto suggest in my wiki using EnableMWSuggest but cannot get it to work. No errors or anything like that, it just doesn't bring up suggestions when I start typing.

I'm using Mediawiki 1.18.0, PHP 5.3.3 (apache2handler), MySQL 5.1.61

In LocalSettings.php I have added -

$wgUseAjax = true; $wgEnableMWSuggest = true; $wgOpenSearchTemplate =true;

I've looked through various post and google searches but still no luck. Can anyone help please?

158.145.224.33 (talkcontribs)

I was able to get it to work by adding $wgVectorUseSimpleSearch = true; to LocalSettings.php in addition to $wgEnableMWSuggest

- David

62.25.106.209 (talkcontribs)

Thanks for that David.

I now have

$wgUseAjax = true; $wgEnableMWSuggest = true; $wgOpenSearchTemplate = true; $wgVectorUseSimpleSearch = true;

but the auto complete/suggest still doesn't work.

Any other ideas please

213.123.203.181 (talkcontribs)

Does anyone else have any thoughts on what I can do to get this working?

Aaron

Ebrahim (talkcontribs)

Just put this:

require_once( "$IP/extensions/Vector/Vector.php" );
$wgVectorUseSimpleSearch = true;

On your LocalSettings.php. Working well for me :)

Krinkle (talkcontribs)

Indeed, the core functionality has been deprecated. Apparently we forgot to remove the configuration variables, because they no longer work.

Install Extension:Vector, and then:

require_once( "$IP/extensions/Vector/Vector.php" );
$wgVectorUseSimpleSearch = true;

Also, $wgOpenSearchTemplate should not be set to true. Doing to would break it even more, it needs to either be set to false (to let the default value be used), or set it to a string that contains an URL path with "{searchTerms}" somewhere in it.

The default is: "$wgServer . $wgScriptPath . '/api.php?action=opensearch&search={searchTerms}';

178.24.205.126 (talkcontribs)
Ciencia Al Poder (talkcontribs)

Have you applied the solutions provided in this same thread?

178.24.205.126 (talkcontribs)
Ciencia Al Poder (talkcontribs)

The search suggestions are enabled on your wiki, but the wiki is responding with a server error (HTTP 500 error) when fetching the suggestions. See the error logs, they should contain more information. And also read Manual:How to debug to gather more information about the error.

This query that should work is responding with an error on your server:

Reply to "Search auto complete - EnableMWSuggest"