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 ranking ought to prioritize more recent major module versions #36969

Open
cespare opened this issue Feb 1, 2020 · 2 comments
Open

Comments

@cespare
Copy link
Contributor

@cespare cespare commented Feb 1, 2020

What is the URL of the page with the issue?

https://pkg.go.dev/search

What is your user agent?

N/A

Screenshot

For example, search for "xxhash":

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

screen_20200201123259

What did you do?

Searched for "xxhash"

What did you expect to see?

The v2 module should be ranked above the old v1 module even if the v1 module has more importers or otherwise ranks higher according to the heuristics pkg.go.dev uses.

Even better, IMO, the v1 wouldn't even show up as a separate search result. The module would appear once and if you visit the page you would see the v2 by default with a way to browse the older module versions.

What did you see instead?

The v1 module appears as the first search result, encouraging new users to use an old version of my module rather than the new one.

@myitcv myitcv added the pkgsite label Feb 2, 2020
@myitcv
Copy link
Member

@myitcv myitcv commented Feb 2, 2020

@jba
Copy link
Contributor

@jba jba commented Jun 8, 2020

I'm uncomfortable showing v2 when v1 is more popular. Perhaps v2 is a misfire, and v1 is the better module (see New Coke).

I do think we should group all versions of a module together. Perhaps we can sort that subgroup by version, but mark the most popular in some way (or vice versa—sort by popularity and mark the latest—which I think I like better).

@julieqiu julieqiu changed the title go.dev: search ranking ought to prioritize more recent major module versions x/pkgsite: search ranking ought to prioritize more recent major module versions Jun 15, 2020
@julieqiu julieqiu added the UX label Jun 15, 2020
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
5 participants
You can’t perform that action at this time.