Skip to content

Search returns not-exact-match first #15264

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

Closed
hazelnutfox opened this issue Jan 24, 2024 · 1 comment
Closed

Search returns not-exact-match first #15264

hazelnutfox opened this issue Jan 24, 2024 · 1 comment
Labels
bug 🐛 requires triaging maintainers need to do initial inspection of issue

Comments

@hazelnutfox
Copy link

Describe the bug

When searching for "tensorflow", search returns "tensorflow1" package first and real "tensorflow" second.

Expected behavior

Tensorflow should appear first when searching for "tensorflow".

In general: exact match for searched word should appear first as it's more intuitive.

To Reproduce

Link to search / go to PyPI and enter "tensorflow" in search, then look at two top results and their order.

My Platform

Unrelated to platform

Additional context

It's more of UX bug than "real" bug. But when someone enters exact name they know exists, they'd expect first result to be it (I clicked first result without thinking and only realised something is wrong when I noticed there's no wheels - I wanted to check wheel os+python combinations for tf).

Search algorithm would normally be hard to modify, but this is "exact match returned first" idea so I hope it's easier.

"tensorflow1" package is not related to real tf at all but it's not malicious (and it's not a placeholder that downloads tf)

@hazelnutfox hazelnutfox added bug 🐛 requires triaging maintainers need to do initial inspection of issue labels Jan 24, 2024
@miketheman
Copy link
Member

Duplicate of #10718

@miketheman miketheman marked this as a duplicate of #10718 Jan 24, 2024
@miketheman miketheman closed this as not planned Won't fix, can't repro, duplicate, stale Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 requires triaging maintainers need to do initial inspection of issue
Projects
None yet
Development

No branches or pull requests

2 participants