You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like when using a threshold of 0 combined with ignoreLocation to return a perfect match, as long as there is one perfect match in the searched text, all other groups of matches are returned no matter how fuzzy they are.
There is only one perfect matching indice — which is the first one — so only one indice should be returned:
[{item: {title: "rouge desert groue"},matches: [{indices: [[0,4]],// only ONE indice should be returnedkey: "title",value: "rouge desert groue"}],refIndex: 0,score: 0.01857804455091699}]
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Description of the bug
Version 7.0 (but reproductible in 6.6.2)
It seems like when using a
threshold
of0
combined withignoreLocation
to return a perfect match, as long as there is one perfect match in the searched text, all other groups of matches are returned no matter how fuzzy they are.JSFiddle: https://jsfiddle.net/dp4efm2s/12/
The Fuse.js version where this bug is happening.
7.0.0
Which version did this behavior use to work in?
Not sure
Steps To Reproduce
Here is the returned object:
Expected behavior
There is only one perfect matching indice — which is the first one — so only one indice should be returned:
Screenshots
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: