Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
x/pkgsite: partial search doesn't return (any) matches which are "close" or latest #36806
What is the URL of the page with the issue?
What is your user agent?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.66 Safari/537.36
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:
What did you see instead?
For https://pkg.go.dev/search?q=goproxytes, zero results.
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
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:
which doesn't even exist anymore (I removed /ui/ from gioui.org packages a while back).