Open thencke opened 4 years ago
I forgot to mention that results are not sorted by score as well (even with shouldSort: true), due to the same problem, score always equal to zero, so sorting will not take effect.
Hello @blinkn! Sorry for taking a long time to answer this.
This library was a hacky implementation of Fuse.js in Dart and those sort of errors could definitely occur, sorry about that.
I'm not sure that I'll be able to take a look at this soon, but if you could, please update us in the process, and open a PR here so other could benefit from it as well!
First of all, amazing library. But, I guess the score property of result object is always zero (even when it hasn't found any matches).
Example:
output shows:
We can see that on verbose output the score is taken correctly, but when printing after search, is aways zero.
I can workaround it doing:
But I'm not happy with this approach, is there a solution for this? Or perhaps I'm doing something wrong, please help. Thanks in advance