Closed mgalgs closed 4 years ago
@krisk do you have some update regarding that issue? I have the same problem.
Not sure how you would want to handle this but the issue lies in bitap_search.js
in the following line const mask = 1 << (patternLen - 1)
Since JS converts values to int32 for all bitwise operations patternLen > 30
overflows. I'll be looking more into this later on.
I have this same issue here. That much time has passed and the bug is not fixed, or am I missing something?
I'm also waiting on an update from @acmadden
Any update here?
Unfortunately I never got around to fixing the issue nor do I have the time now. I have laid out what exactly is the problem above, so if you want to submit a PR for a fix I’m sure that would be appreciated.
Hi, i solved this bug so please take a look at the solution. https://github.com/krisk/Fuse/pull/333 Still using Fuse @mgalgs ? ;)
Still using Fuse @mgalgs ? ;)
@ErikLarsson82 as a matter of fact I am :smile: Your fix looks promising!
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
This still happens. You can see it happening with 33, 65, 129, 257 letter inputs here http://is.wasteof.money/
I've noticed that when the length of my search pattern is > 32 fuse matches everything in my dataset. Interestingly, if I "include matches" there aren't actually any indices in the resulting matches array.
Here's a live demo: http://codepen.io/mgalgs/pen/jyROXg
Also pasted here:
Results in: