Last modified: 2012-11-02 11:38:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T36707, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34707 - Enchant Suggestion mode does not work
Enchant Suggestion mode does not work
Status: UNCONFIRMED
Product: MediaWiki extensions
Classification: Unclassified
SphinxSearch (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Svemir Brkic
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-25 12:52 UTC by webpaul
Modified: 2012-11-02 11:38 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description webpaul 2012-02-25 12:52:04 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?
Comment 1 Svemir Brkic 2012-06-07 12:30:11 UTC
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?
Comment 2 Andre Klapper 2012-06-29 15:51:01 UTC
emilhugo: Can you please answer comment 1?
Comment 3 webpaul 2012-07-17 17:04:34 UTC
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.
Comment 4 webpaul 2012-07-17 17:05:37 UTC
Sorry The dic file contains a list of words.
Comment 5 Svemir Brkic 2012-07-18 18:32:12 UTC
Is there some error message? Maybe it is looking in the wrong folder? What OS is this on?
Comment 6 webpaul 2012-07-23 20:21:21 UTC
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
Comment 7 Svemir Brkic 2012-07-23 20:24:08 UTC
Is there some error in the PHP log or on the screen when it tries to load the dictionary in the wiki?
Comment 8 Andre Klapper 2012-10-14 19:21:20 UTC
webpaul: Can you answer comment 7 please?
Comment 9 Andre Klapper 2012-10-24 04:12:24 UTC
emilhugo: Is there some error in the PHP log or on the screen when it tries to load the dictionary in the wiki?
Comment 10 webpaul 2012-10-30 16:18:46 UTC
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';

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links