pub-dev icon indicating copy to clipboard operation
pub-dev copied to clipboard

Searching "bluetooth" doesn't show helpful results

Open HosseinYousefi opened this issue 1 year ago • 5 comments

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

HosseinYousefi avatar Jul 16 '24 12:07 HosseinYousefi

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?

isoos avatar Jul 16 '24 13:07 isoos

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.

HosseinYousefi avatar Jul 16 '24 13:07 HosseinYousefi

+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.

mkobuolys avatar Jul 16 '24 21:07 mkobuolys

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.

orestesgaolin avatar Jul 17 '24 06:07 orestesgaolin

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

Mockup:

image

sigurdm avatar Jul 29 '24 12:07 sigurdm