Sphinx connector for Node.js
JavaScript
Pull request Compare This branch is 87 commits behind kurokikaze:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.markdown
bits.js
limestone.js
ls-test.js
package.json
purels-opt.js
purels.js

README.markdown

Limestone is a Sphinx search server connector for Node.js

Usage:

var limestone = require("./limestone").SphinxClient(),
    sys = require("sys");

// 9312 is standard Sphinx port
limestone.connect(9312, function(err) {
    if (err) {
        sys.puts('Connection error: ' + err);
    }
    sys.puts('Connected, sending query');
    limestone.query({'query':'test', maxmatches:1}, function(err, answer) {
        limestone.disconnect();
        sys.puts("Extended search for 'test' yielded " + answer.match_count + " results: " + JSON.stringify(answer));
    });
});