So I used Chrome's developer console on Wikipedia and on my wiki. It is obvious that this function is working on Wikipedia for two reasons:
- The search suggestion box appears as I type a search
- The Chrome XHR console shows a Javascript request to the Wikipedia server with each keystroke in the search box
On my wiki, I do not see the Javascript interaction with my server on keystrokes, so that tells me that it is likely that the Javascript to do Search Suggestions is not being sent to the browser.
I have the following in my LocalSettings.php:
$wgSearchType = 'LuceneSearch';
$wgLuceneHost = 'mywikiserver.mydomain.com';
$wgLucenePort = 8123;
$wgEnableLucenePrefixSearch = true;
$wgLucenePrefixHost = 'mywikiserver.mydomain.com';
require_once( "$IP/extensions/MWSearch/MWSearch.php" );
$wgLuceneSearchVersion = 2.1;
My lsearch-global.conf file contains this:
[Database]
wikidb : (single) (prefix) (spell,4,2) (language,en)
When I run 'build', I see the prefix index being built. When I run 'lsearchd', I see the prefix index being loaded. I can see the searches working by watching the console output of lsearchd (just running in shell for the time being). I do not see any indication that the Search Suggestions are reaching the server (but I knew that from the Chrome console anyway).
Am I missing some configuration parameter that would enable the Javascript for Search Suggestions to be sent to the browser?