Package Exports
- sphinxapi
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sphinxapi) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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.
Contributors
Installation
With npm do:
$ npm install sphinxapiExamples
Status
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));
})Query
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
GetLastError()
UpdateAttributes (index, attrs, values, mva)