node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…

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(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));
});

API Documentation

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

Also

License

MIT/X11