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
Fuse.js 7.6 is in beta, and the headline is speed. Fuzzy search is 3 to 10 times faster than 7.5, and multi-word token search is up to 19 times faster, on the same data with the same results in almost every case.
npm install fuse.js@beta
What changed
A new matching algorithm. Fuzzy search now uses Myers' bit-vector algorithm, which checks each piece of text in a single pass instead of Bitap's one pass per allowed typo. If you need the old behavior, set matchAlgorithm: 'bitap'.
Correct match scores. Fuse sometimes reported a worse score than the match it actually found, which pushed some full-word matches down the results. That's fixed, so your result order may change, and in every case the new order is the correct one.
Safer shared indexes. Creating several Fuse instances from one parsed index no longer lets add() or remove() on one of them corrupt the others.
Plus 18 community bug fixes from the earlier betas. The full list is in the changelog.
What I'd love to hear
Ranking changes you didn't expect. This is the most useful thing to report, because it decides whether the new algorithm ships as the default in 7.6.0. Please include the query, a few of the documents, your options, and what you expected versus what you got.
Speed on your data. Before/after numbers from real apps, even rough ones, help a lot.
Anything that broke. Errors, TypeScript issues, worker setups, unusual options.
Reply here, or open an issue if it's clearly a bug. I'll keep the beta open for a couple of weeks before deciding on 7.6.0.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Fuse.js 7.6 is in beta, and the headline is speed. Fuzzy search is 3 to 10 times faster than 7.5, and multi-word token search is up to 19 times faster, on the same data with the same results in almost every case.
What changed
matchAlgorithm: 'bitap'.Fuseinstances from one parsed index no longer letsadd()orremove()on one of them corrupt the others.What I'd love to hear
Reply here, or open an issue if it's clearly a bug. I'll keep the beta open for a couple of weeks before deciding on 7.6.0.
All reactions