-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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: partial search doesn't return (any) matches which are "close" or latest #36806
Comments
This is helpful, thanks! We are still tuning our search algorithm, so it's useful to know of these unexpected search results. It sounds like there are a couple of suggestions here:
Also in the case of searching for |
Regarding "Support searching by packages and modules"
Yes. I think both should be returned, and there be some indicator (icon/colour/etc) that distinguishes a package vs a module.
My sense is that it should be possible to add something like |
Ranking
As a broad heuristic to feed into the overall ranking algorithm, this feels sensible.
@mvdan will confirm, but, given the previous point, I would have expected to see Whilst we are here, searching for |
Another unfortunate query is https://pkg.go.dev/search?q=gio, where I would expect the gioui.org module and packages to come near the top. However, the first appearance is on page 3, for the gioui.org/ui package: https://pkg.go.dev/search?page=3&q=gio linking to https://pkg.go.dev/gioui.org/ui which doesn't even exist anymore (I removed /ui/ from gioui.org packages a while back). |
What is the URL of the page with the issue?
What is your user agent?
Screenshot
For https://pkg.go.dev/search?q=goproxytes:
For https://pkg.go.dev/search?q=sh:
What did you do?
Visited either of the search results pages above.
What did you expect to see?
For https://pkg.go.dev/search?q=goproxytes I would expect to see https://pkg.go.dev/github.com/rogpeppe/go-internal/goproxytest?tab=doc in the results.
For https://pkg.go.dev/search?q=sh I would expect to see:
mvdan.cc/sh
,mvdan.cc/sh/v2
andmvdan.cc/sh/v3
listed as module search results, along with packages that are "close" matchesWhat did you see instead?
For https://pkg.go.dev/search?q=goproxytes, zero results.
For https://pkg.go.dev/search?q=sh a number of results which I would consider "further away" than https://pkg.go.dev/mvdan.cc/sh/v3/syntax?tab=doc
FYI @mvdan
The text was updated successfully, but these errors were encountered: