Fuse: The score is always 1 when using extendedSearch and "include" match type

Created on 14 Dec 2020  路  1Comment  路  Source: krisk/Fuse

Describe the bug

image
The score is always 1 and I cannot sort the results. Is this a bug or expected behavior?

Version

6.4.3

Minimal Reproduction

Demo: https://jsfiddle.net/baibonjwa/dcoL1nth/17/

bug

Most helpful comment

Yes! This one was messing me up big time. I see that the scoring for this looks flipped in the code. I'm going to send a PR for that - hopefully it will be accepted quickly. 馃

>All comments

Yes! This one was messing me up big time. I see that the scoring for this looks flipped in the code. I'm going to send a PR for that - hopefully it will be accepted quickly. 馃

Was this page helpful?
0 / 5 - 0 ratings

Related issues

312307025 picture 312307025  路  4Comments

Olian04 picture Olian04  路  4Comments

fsskeach picture fsskeach  路  3Comments

isiahmeadows picture isiahmeadows  路  3Comments

krisk picture krisk  路  4Comments