-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
x/pkgsite: provide options for sorting search results by number of imports and stars on GitHub #36952
Comments
Thanks for the feedback! We sort by package imports currently, and are working to improve our search quality. If you have other examples of bad searches, feel free to post them on this issue. |
As suggested by @ALTree, I'm moving #37430 here as the two issues are quite related. The main difference is that -- rather than just changing the default sort order -- #37430 requests the feature to allow users to select search order, including ascending and descending. Provide options for sorting search results by number of imports and stars on GitHubFrom #37430 (comment): This issue is a feature request for For an example of this functionality, see the GitHub search results:
The search option categories of
Note, GitHub stars was a useful metric detailed by |
Based on internal research, social and activity signals that may be helpful for package selection:
|
As requested on https://blog.golang.org/pkg.go.dev-2020: I have found godoc.org to be the best way to search for quality Go modules, significantly because it defaults to sorting by the number of imports (possibly informed by the number of stars).
Compare: https://pkg.go.dev/search?q=smtp
To: https://godoc.org/?q=smtp
Observe, for instance, that on godoc.org, Brad Fitz's smtpd server comes up early, whereas on pkg.go.dev the front page has several packages of much less importance, and smtpd shows up on page 17 after a lot of inner modules and minor forks and larger projects that just happen to have an "smtp" package. Prioritizing hits at the "top level" of the package is probably a good idea, too; github.com/blah/smtpd is much more likely to be what I'm looking for than github.com/blah/project/go/inner1/inner2/smtp.
I also routinely suggest this to newcomers as a way of locating modules for Go.
The text was updated successfully, but these errors were encountered: