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

Open
pjweinb opened this issue Oct 21, 2020 · 1 comment
Open

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

pjweinb opened this issue Oct 21, 2020 · 1 comment

Comments

@pjweinb
Copy link

@pjweinb pjweinb commented Oct 21, 2020

pkg.go.dev

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

@gopherbot gopherbot added the pkgsite label Oct 21, 2020
@gopherbot gopherbot added this to the Unreleased milestone Oct 21, 2020
@julieqiu julieqiu modified the milestones: Unreleased, pkgsite/search Oct 21, 2020
@cespare
Copy link
Contributor

@cespare cespare commented Oct 21, 2020

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

packages

(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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.