krisk / Fuse

Lightweight fuzzy-search, in JavaScript
https://fusejs.io/
Apache License 2.0
18.15k stars 767 forks source link

Help upgrading from Fuse 3.2.1 to the latest version #618

Closed kaushalmodi closed 2 years ago

kaushalmodi commented 2 years ago

Hello,

I maintain a little Hugo (static site generator) module ( https://github.com/kaushalmodi/hugo-search-fuse-js ) that enables using Fuse.js to do client-side searching using a pre-generated (by Hugo) index.json.

The Hugo module works great as long as I lock the Fuse.js dependency to v3.2.1. If I use the latest Fuse.js, I don't see any errors (Note: I don't know how to read or code in JS.. I am just maintaining the Hugo side of things in that module), but I see some searches work and most not.

The Javascript file of interest would be this: https://github.com/kaushalmodi/hugo-search-fuse-js/blob/main/assets/js/search.js

If someone has time and interest, can they please help update that script so that it works with Fuse.js v6.x.x?

Ref: https://github.com/kaushalmodi/hugo-search-fuse-js/issues/19

kaushalmodi commented 2 years ago

Related: https://github.com/wowchemy/wowchemy-hugo-themes/issues/2125

github-actions[bot] commented 2 years ago

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

kaushalmodi commented 2 years ago

@krisk Can I get help with this Fuse upgrade?