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: why i can't search my published module only by github account name or module name? #58136

Open
mumingv opened this issue Jan 29, 2023 · 4 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

@mumingv
Copy link

mumingv commented Jan 29, 2023

What is the URL of the page with the issue?

https://pkg.go.dev

What is your user agent?

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

Screenshot

see below.

What did you do?

Searching by account name "mumingv", i can't get the expected result.

image

Searching by module name "golib", i can't get the expected result too. (I look through all items, but "mumingv/golib" doesn't exist.)

image

But i search by "mumingv/golib", i get it.

image

Then i try to search another user's account name, it can list all modules belonging to him.

image

I don't know why?

What did you expect to see?

I want to search my published modules only by "mumingv" or "golib" rather than "mumingv/golib".

What did you see instead?

I must use account name plus module name, i.e. "mumingv/golib", to search my published module.

@gopherbot gopherbot added this to the Unreleased milestone Jan 29, 2023
@mumingv
Copy link
Author

mumingv commented Feb 1, 2023

So does anybody know this problem?

@hyangah
Copy link
Contributor

hyangah commented Feb 2, 2023

Strange. I see the search work as expected now but still see the problem when searching with golib.

Screenshot 2023-02-01 at 10 49 14 PM

cc @golang/tools-team

@hyangah hyangah added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Feb 2, 2023
@hyangah hyangah modified the milestones: Unreleased, pkgsite/later Feb 2, 2023
@hyangah hyangah added the pkgsite/search Issues related to pkg.go.dev search functionality label Feb 2, 2023
@jamalc
Copy link

jamalc commented Feb 2, 2023

It looks like the initial version of your module contained no license making it un-redistributable. Projects without a redistributable license do not show up in our search results. We cache the result of a search query for 24 hours. Now that your module has a redistributable license it should appear in search results for queries where it ranks high enough. We do not show all relevant results for a search term.

@mumingv
Copy link
Author

mumingv commented Feb 14, 2023

It looks like the initial version of your module contained no license making it un-redistributable. Projects without a redistributable license do not show up in our search results. We cache the result of a search query for 24 hours. Now that your module has a redistributable license it should appear in search results for queries where it ranks high enough. We do not show all relevant results for a search term.

Yes, I add a license file after publishing according the tips of my package's main page(https://pkg.go.dev/github.com/mumingv/golib). So, if I publish a new package with a license file, I will search it immediately, right? Or, I also wait it ranking high enough?

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

4 participants