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

Fuzzy search only finds matches within first 240 chars #490

Open
mwilmes opened this issue Jan 13, 2025 · 0 comments
Open

Fuzzy search only finds matches within first 240 chars #490

mwilmes opened this issue Jan 13, 2025 · 0 comments

Comments

@mwilmes
Copy link

mwilmes commented Jan 13, 2025

With the default Fuse.js settings in overview.tsx search matches are only considered within 240 characters from the start.

It might be useful to either make the search settings configurable or using "ignoreLocation: true" by default.

To illustrate, consider the following options:

location defaults to 0
distance defaults to 100
threshold defaults to 0.6
With the above options, for something to be considered a match, it would have to be within (threshold) 0.6 x (distance) 100 = 60 characters away from the expected location 0.

See also:

https://www.fusejs.io/concepts/scoring-theory.html
https://www.fusejs.io/api/options.html#ignorelocation

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

No branches or pull requests

1 participant