Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade fuse.js to v6 #881

Closed
paulovieira opened this issue Jul 24, 2020 · 1 comment · Fixed by #991
Closed

Upgrade fuse.js to v6 #881

paulovieira opened this issue Jul 24, 2020 · 1 comment · Fixed by #991

Comments

@paulovieira
Copy link

Fuse.js has seen a couple new major releases recently. I don't know much about what might have changed, but it seems the code is smaller now.

https://github.com/krisk/Fuse/releases

@Vintic
Copy link

Vintic commented Feb 26, 2021

Would be really cool.
Because, for example:

const options = {
  includeScore: true,
  shouldSort: true,
  threshold: 0.0,
  useExtendedSearch: true,
   ignoreLocation: true,
  keys: [
    "keywords"
  ]
};

const fuse = new Fuse(list, options);

// Change the pattern
const pattern = "tyu hello asd"

return fuse.search(pattern)

in

[
  {
    "keywords": "hello zxc qweeee tyu",},
  {
    "keywords": "hello omg asdddd tyu",}]

fuse 6 - will return second item.
Current version - will return nothing.

I would like to use it for search by keywords.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants