See ITPatrol repository for the latest developments.
It's native javascript implementation of the standard Sphinx API. The API is totaly similar with the others API clients implementation. It's also respects NodeJS code convention.
This implementation is based on the Python Official Sphinx Client.
With npm do:
$ npm install sphinxapi
var SphinxClient = require ("sphinxapi"),
util = require('util'),
assert = require('assert');
var cl = new SphinxClient();
cl.SetServer('localhost', 19312);
cl.Status(function(err, result) {
assert.ifError(err);
console.log(util.inspect(result, false, null, true));
})
var SphinxClient = require ("sphinxapi"),
util = require('util'),
assert = require('assert');
var cl = new SphinxClient();
cl.SetServer('localhost', 19312);
cl.Query('test', function(err, result) {
assert.ifError(err);
console.log(util.inspect(result, false, null, true));
});
from the official documentation : http://sphinxsearch.com/docs/current.html#api-reference