SphinxSearch

Fragment of a discussion from User talk:MWJames
Jump to: navigation, search

Just to clarify, I assume you did

  • run the indexer
  • configured the spinx.conf so it is connected to the mysql

Other things that crossed my mind are:

  • I thing there was a change in regards to the ports, so your spinx.conf should say port = 9312 instead of port = 3312.
  • In your SphinxSearch.php file try to find $wgSphinxSearch_mode and changed it to $wgSphinxSearch_mode = SPH_MATCH_EXTENDED2;
MWJames18:01, 25 June 2011

Indexer has ran and the config is correct (I can run the search from command line where it works as it should). Neither ports are getting the desired result (I always get Query failed: connection to localhost:xxxx failed (errno=111, msg=Connection refused) ) and modifying $wgSphinxSearch_mode does not seem to change anything.

Jeroen De Dauw18:56, 25 June 2011

The next thing I remember was that we had some trouble with IP vs localhost. In case the server is referred to as to localhost the best thing is to change it and write as IP such as:

SphinxSearch.php $wgSphinxSearch_host = '127.0.0.1'; $wgSphinxSearch_port = 9312;

spinx.conf >> # data source definition for the main index sql_host = 127.0.0.1 >> # searchd settings listen = 127.0.0.1

MWJames19:13, 25 June 2011

I found the issue, I had some incorrect path in the config file... For some reason it did not occur to me earlier to look at the log file >_>

Works both with 'localhost' and '172.0.0.1' on my machine.

Thanks for the help! :)

Jeroen De Dauw14:48, 28 June 2011