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

Searching "bluetooth" doesn't show helpful results #7872

Open
HosseinYousefi opened this issue Jul 16, 2024 · 5 comments
Open

Searching "bluetooth" doesn't show helpful results #7872

HosseinYousefi opened this issue Jul 16, 2024 · 5 comments

Comments

@HosseinYousefi
Copy link
Member

The first three results are all not what users want. A popular package mostly used for bluetooth called flutter_blue_plus only shows up on the third page.

Screenshot 2024-07-16 at 14 32 30
@isoos
Copy link
Collaborator

isoos commented Jul 16, 2024

Thanks for reporting this!

The SDK result should be down-ranked, that's for sure.
I'm unsure about the exact-match package name, I think it is useful to keep exact name matching a priority.
After that is a mixed bag: what would you expect to rank better for such a generic term?

@HosseinYousefi
Copy link
Member Author

I think the current algorithm puts too much weight on having the keyword in the actual name hurting the visibility of libraries that opt for a different name.

https://pub.dev/packages/flutter_blue_plus has 881 likes, 99% popularity and is recently updated. I guess (and you can verify this) that if its name was flutter_bluetooth_plus instead, it would have been much higher on the list, at least on the first page.

@mkobuolys
Copy link

+1 to this.

I agree that the title of the package should have a high priority. However, that’s not how people are usually searching for the packages they need to use. In those cases, usually keywords play a bigger role there. Most of the keywords are found in the package description, topics and README.md - not sure if these are even included.

Also, if we talk specifically about the search by package name, I don’t even think that fuzzy matching is implemented. E.g. if you try to search for the package “flutter_deck” by typing “deck” - all good, that’s the third result. However, if there is a typo, like “dekc” - that’s it, the result does not appear in any of the pages.

@orestesgaolin
Copy link

I must say that Google results (at least for me) show quite good representation of top packages

screenshot_20240717_085624

You can see that bluetooth keyword is highlighted in packages descriptions.

@sigurdm
Copy link
Contributor

sigurdm commented Jul 29, 2024

Maybe we can visually highlight when a package is included because of a direct match, but not otherwise regarded useful.

Mockup:

image

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

No branches or pull requests

5 participants