Last modified: 2012-11-02 11:38:20 UTC
MediaWiki 1.18.0 PHP 5.3.10 (apache2handler) Sphinx 2.0.3-release (r3043) SphinxSearch (Version 0.8.5) Hello, I configured the extension and it works. Thanks for the extension. Also I configured the word suggestion with enchant and did the steps to create the dictionary file. But it does not work - no suggestion is displayed. I analyzed the issue and found that in the SphinxMWSearch.php file the follwing line can be executed enchant_broker_set_dict_path($broker, ENCHANT_MYSPELL, dirname( __FILE__ )); but the next instruction don't find the dictionary ( if ( enchant_broker_dict_exists( $broker, 'sphinx' ) ) { ) and therefore no suggestion is found. Do you know how can be continue investigate the issue?
What do you get when you run "php SphinxSearch_setup.php ..."? It should list the name of the sphinx index it processed, the number of docs, etc. After it is done, there should be sphinx.aff and sphinx.dic files in the same folder. Are they there?
emilhugo: Can you please answer comment 1?
Yes I already run the setup script and the script shows the index and 2226 docs and the total read and writes. Also the files sphinx.aff and sphinx.dic are created. The dic file contains a list of files and the aff file contains SET UTF-8.
Sorry The dic file contains a list of words.
Is there some error message? Maybe it is looking in the wrong folder? What OS is this on?
No there is no error message: Sphinx 2.0.3-release (r3043) Copyright (c) 2001-2011, Andrew Aksyonoff Copyright (c) 2008-2011, Sphinx Technologies Inc (http://sphinxsearch.com) using config file 'sphinx.conf'... indexing index 'wiki_main'... building stopwords list... total 2229 docs, 7591644 bytes total 5.903 sec, 1286060 bytes/sec, 377.60 docs/sec total 0 reads, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg total 0 writes, 0.000 sec, 0.0 kb/call avg, 0.0 msec/call avg The OS is SuSE Enterprise 11.1
Is there some error in the PHP log or on the screen when it tries to load the dictionary in the wiki?
webpaul: Can you answer comment 7 please?
emilhugo: Is there some error in the PHP log or on the screen when it tries to load the dictionary in the wiki?
There is no error in the error in the php or apache log, also there is no error on the screen. The wiki handle it as it is not enabled, but the settings are set: $wgEnableMWSuggest = true; in combination with and withou $wgSphinxSuggestMode = 'enchant';