Inist-CNRS/node-sphinxapi

Getting nothing!

kevinjuliano1020 opened this issue · 0 comments

I am getting no results or returned value even errors. here's my code:

const SphinxClient = require('sphinxapi'),util = ('util'),assert = ('assert');

var cl = new SphinxClient();
cl.SetServer('localhost', 9300);

var q = "SELECT *,weight() as w from myindex where match('@find *test*') ORDER BY w DESC";
cl.Query(q, 'myindex', function(err, result){
    console.log(result);
});

can someone help?