Skip to content

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

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

Closed
pjweinb opened this issue Oct 21, 2020 · 3 comments
Closed

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

pjweinb opened this issue Oct 21, 2020 · 3 comments
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. pkgsite/search Issues related to pkg.go.dev search functionality pkgsite

Comments

@pjweinb
Copy link

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 this to the Unreleased milestone Oct 21, 2020
@julieqiu julieqiu added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Oct 21, 2020
@julieqiu julieqiu modified the milestones: Unreleased, pkgsite/search Oct 21, 2020
@cespare
Copy link
Contributor

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.

@hyangah hyangah added the pkgsite/search Issues related to pkg.go.dev search functionality label May 20, 2022
@seankhliao
Copy link
Member

seems to be worse now, we get a random selection of standard library packages.

@seankhliao
Copy link
Member

Duplicate of #41369

@seankhliao seankhliao marked this as a duplicate of #41369 Dec 29, 2024
@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. pkgsite/search Issues related to pkg.go.dev search functionality pkgsite
Projects
None yet
Development

No branches or pull requests

6 participants