In the body of the Sifter.prototype.search function are the following lines:
// generate result scoring function
fn_score = options.score || self.getScoreFunction(search);
I take this to mean we can supply a custom score function, which is pretty neat, but undocumented on the project GitHub page. It would be better to have it documented.
In the body of the
Sifter.prototype.search
function are the following lines:I take this to mean we can supply a custom score function, which is pretty neat, but undocumented on the project GitHub page. It would be better to have it documented.