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

x/pkgsite: searching for 'packages' doesn't find 'go/packages' #42129

pjweinb opened this issue Oct 21, 2020 · 1 comment

x/pkgsite: searching for 'packages' doesn't find 'go/packages' #42129

pjweinb opened this issue Oct 21, 2020 · 1 comment


Copy link

@pjweinb pjweinb commented Oct 21, 2020

searching for 'packages' gives a lot of well-known packages, but 'go/packages' would seem more relevant.

Copy link

@cespare cespare commented Oct 21, 2020

For me, it does appear, but as search result 79:


(Nobody clicks to page 8, though, so this is effectively the same as not showing up at all.)

Just observing the results it looks like it's fuzzy-matching "packages" to "package" and then matching ~every package that exists due to the word "package" appearing in the package description:

Package log implements a simple logging package.

Package fmt implements formatted I/O with functions analogous to C's printf and scanf.

Ideally the fact that the exact search string "packages" matches the package name exactly as well as the last segment of the import path would cause the go/packages result to rank much more highly; ideally as the first result.

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

Successfully merging a pull request may close this issue.

None yet
4 participants