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: search doesn't find "std" #63454

Open
rothskeller opened this issue Oct 9, 2023 · 4 comments
Open

x/pkgsite: search doesn't find "std" #63454

rothskeller opened this issue Oct 9, 2023 · 4 comments
Assignees
Labels
FeatureRequest Issues asking for a new feature that does not need a proposal. pkgsite/search Issues related to pkg.go.dev search functionality pkgsite

Comments

@rothskeller
Copy link

rothskeller commented Oct 9, 2023

What is the URL of the page with the issue?

https://pkg.go.dev/search?q=std

What is your user agent?

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36

Screenshot

What did you do?

Searched for "std".

What did you expect to see?

The standard library page, with the list of packages in the standard library, should be listed in the search results. By strong preference, it should be the first search result.

Admittedly, the standard library is not a package named std. But Its page has the address pkg.go.dev/std, and it's not unreasonable to search for std and expect to find it.

What did you see instead?

A bunch of third party packages with "std" in the name, but not the standard library.

@gopherbot gopherbot added this to the Unreleased milestone Oct 9, 2023
@mvdan
Copy link
Member

mvdan commented Oct 9, 2023

Perhaps related to #59495.

@mvdan
Copy link
Member

mvdan commented Oct 9, 2023

Also worth noting that https://pkg.go.dev/std exists; I find it surprising that it's not the first result, or an immediate redirect, when searching for std. cc @golang/pkgsite

@adonovan adonovan added the FeatureRequest Issues asking for a new feature that does not need a proposal. label Oct 12, 2023
@adonovan
Copy link
Member

cc: @jba

@seankhliao
Copy link
Member

CL 644676 adds std as a search prefix, maybe the std page should be added as a search special case?

cc @jba

@jba jba self-assigned this Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FeatureRequest Issues asking for a new feature that does not need a proposal. pkgsite/search Issues related to pkg.go.dev search functionality pkgsite
Projects
None yet
Development

No branches or pull requests

7 participants