sphinxapi

Native javascript implementation of the standard Sphinx API

Sphinx Search Client for NodeJS

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.

Installation

With npm do:

$ npm install sphinxapi

Examples

var SphinxClient = require ("sphinxapi"),
    util = require('util'),
    assert = require('assert');
 
var cl = new SphinxClient();
cl.SetServer('localhost', 19312);
cl.Status(function(errresult) {
        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(errresult) { 
        assert.ifError(err);
        console.log(util.inspect(result, false, null, true));
});

API Documentation

from the official documentation : http://sphinxsearch.com/docs/current.html#api-reference

Also

  • https://github.com/kurokikaze/limestone

License

MIT/X11