Hi Devin TS v3 uses Sphinx’s mysql41 protocol with the SphinxQL query language (very similar to SQL) - and if you’re not using Thinking Sphinx, it certainly looks like you’re using the mysql41 protocol option in your configuration anyway.
Riddle’s client is built for Sphinx’s older binary protocol. So, to get stuck into the internals, it’s better to use the `mysql2` gem - here’s the code in TS that does the interactions (though it’s perhaps not immediately obvious, given it caters for both MRI with mysql2 and JRuby with JDBC: https://github.com/pat/thinking-sphinx/blob/master/lib/thinking_sphinx/connection.rb If you just want to test things manually, the `mysql` CLI tool is a good place to start: mysql —host 127.0.0.1 —port 9306 (mysql defaults to UNIX socket connections if you don’t specify a host, even when you specify a port number). Hope this helps! — Pat > On 30 Jan 2015, at 6:40 am, Devin Christensen <[email protected]> wrote: > > I've created the following ruby script to do some simple testing: > > require 'riddle' > require 'riddle/2.1.0' > > client = Riddle::Client.new 'myhost' > > client.match_mode = :extended > client.query "blargh" > > When I run it, I get the following error on the client: > > No response from searchd (status: 2613, version: 11829) > (Riddle::ResponseError) > > And the sphinx server logs the follwing: > > [Thu Jan 29 12:28:34.927 2015] [ 685] WARNING: failed to receive MySQL > request body (client=x.x.x.x:42806(10859251), exp=0, error='Success') > > Any idea where my issue might be? > > -- > You received this message because you are subscribed to the Google Groups > "Thinking Sphinx" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at http://groups.google.com/group/thinking-sphinx > <http://groups.google.com/group/thinking-sphinx>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/thinking-sphinx. For more options, visit https://groups.google.com/d/optout.
