views:

43

answers:

2

I'm trying to search in sphinx from node.js code. The only way to do it I know is to connect to searchd as to mysqld server. I'd absolutely all known mysql libraries, but no of them even connected to sphinx.

A: 

The simplest way can be: Install Sphinx table engine to MySQL and use it using any Node.js-MySQL connector.

The better solution will be to implement sphinx client in node.js - it should be pretty easy. Just check the Sphinx PHP API - it's not so hard to recode it with node.js sockets.

Vadim