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

Search Tolerance #4

Closed
rsimon opened this issue Jul 5, 2024 · 1 comment
Closed

Search Tolerance #4

rsimon opened this issue Jul 5, 2024 · 1 comment

Comments

@rsimon
Copy link
Collaborator

rsimon commented Jul 5, 2024

We currently have a small dilemma with search:

  • if we allow fuzziness, there are a lot of irrelevant suggestions. E.g. a search for 'hand' brings up 'elephant'.
  • if we limit fuzziness, there are no more matches on characters with diacritics.

FuseJS since ill-equipped to support both. So we may need to find alternative solutions, or implement a workaround solution, inspired by this. Note that the exact same approach won't work for us, since - as mentioned in the thread - the normalization will remove diacritics from the suggested terms. Instead we'll probably want to add a second, hidden field. Keeping one (normalized) for search, one (original) for display.

@rsimon
Copy link
Collaborator Author

rsimon commented Jul 19, 2024

This is now implemented, by indexing two versions of each tag: original and without diacritics. Search is then run only against the non-diacritics term.

@rsimon rsimon closed this as completed Jul 19, 2024
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