Topic on User talk:MWJames/Flow

Jeroen De Dauw (talkcontribs)

I'm having a bunch of issues with the SphinxSearch extension, which you apparently got running successfully. Can you have a look at my problem, maybe you already fixed it, or know how to get around it.

MWJames (talkcontribs)

First thing that comes to my mind is to us 0.7.2 from the SVN trunk.

Jeroen De Dauw (talkcontribs)
MWJames (talkcontribs)

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;
Jeroen De Dauw (talkcontribs)

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.

MWJames (talkcontribs)

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

Jeroen De Dauw (talkcontribs)

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! :)