This repository was archived by the owner on Mar 28, 2019. It is now read-only.

Description
cl.SetFieldWeights({
question : 20,
tags : 50,
body : 10
});
This throws the error: AssertionError: "undefined" == "object"
in line ../node_modules/sphinxapi/lib/sphinxapi.js:315:9)
This is the code. I think I notice a couple of mistakes there...
SphinxClient.prototype.SetFieldWeights = function (weights) {
var self = this
assert.equal(typeof item, 'object')
forEach(weights, function (item, index) {
assert.equal(typeof item, 'number')
})
self._fieldweights = weights
};
Please have a look. Thanks