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

Is it possible to disable transposition? #779

Open
1 task done
v4lenz opened this issue Sep 2, 2024 · 1 comment
Open
1 task done

Is it possible to disable transposition? #779

v4lenz opened this issue Sep 2, 2024 · 1 comment
Labels

Comments

@v4lenz
Copy link

v4lenz commented Sep 2, 2024

Is there an existing issue or pull request for this?

Feature description

I'm a bit frustrated by the fact that the searched term metric matches the term cluster, because of the letters ter which yes, are in the metric word, but not in the original order.

According to this SO thread, https://stackoverflow.com/questions/68037392/why-do-items-match-in-fuse-js-if-the-pattern-contians-a-letter-that-doesnt-exis, Fuse uses Levenshtein distance, and it is not possible to achieve what I want.

Do you guys confirm? Am I the only one frustrated by this behavior?
Thank you

Desired solution

I'd like Fuse to always respect the order of the letters in the searched term. For my specific example, the searched word metric should not return as a match the word cluster.

Alternatives considered

According to the mentioned thread, a different library (not sure I can mention here, but it's in the link) would solve the problem. I found this thread that seems to discuss a similar topic, but with no actual solution to my specific problem: #41

Additional context

No response

@v4lenz v4lenz added the feature label Sep 2, 2024
@HoloZoR
Copy link

HoloZoR commented Sep 3, 2024

I have the same question.

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

No branches or pull requests

2 participants