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

[rustdoc] Search results: Make fuzzy search less wild for small words #82131

Closed
ojeda opened this issue Feb 15, 2021 · 2 comments · Fixed by #107141
Closed

[rustdoc] Search results: Make fuzzy search less wild for small words #82131

ojeda opened this issue Feb 15, 2021 · 2 comments · Fixed by #107141
Assignees
Labels
A-rustdoc-search Area: Rustdoc's search feature C-enhancement Category: An issue proposing an enhancement or a PR with one. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@ojeda
Copy link
Contributor

ojeda commented Feb 15, 2021

Fuzzy search is matching too many things [*], e.g.:

  • FRom due to FRee
  • REm due to fREe

It could be improved restricting matches for small words, e.g. for words < 4 in size, match only if 3 characters or more match.

[*]
image

@jyn514 jyn514 added A-rustdoc-search Area: Rustdoc's search feature T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Feb 15, 2021
@camelid camelid added the C-enhancement Category: An issue proposing an enhancement or a PR with one. label Feb 15, 2021
@lucas-deangelis
Copy link
Contributor

Can I claim this one?

@lucas-deangelis
Copy link
Contributor

@rustbot claim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rustdoc-search Area: Rustdoc's search feature C-enhancement Category: An issue proposing an enhancement or a PR with one. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
6 participants