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

feat: tweak the fuzzy search to be less fuzzy #45

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

scallaway
Copy link
Contributor

It turns out that for the use-case of searching for names, the defaults that come with Fuse.JS are a little bit too loose. Therefore, this tightens them up a bit by decreasing the threshold and distance as outlined here:

https://www.fusejs.io/api/options.html#fuzzy-matching-options

This reduces them down significantly, but I think that should be better for match on exact names when the user clicks on the appropriate button.

It turns out that for the use-case of searching for names, the defaults
that come with Fuse.JS are a little bit _too_ loose. Therefore, this
tightens them up a bit by decreasing the threshold and distance as
outlined here:

    https://www.fusejs.io/api/options.html#fuzzy-matching-options

This reduces them down significantly, but I think that should be better
for match on exact names when the user clicks on the appropriate button.
@tommilligan tommilligan merged commit 1136249 into qvet:master Oct 18, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants