commit | afa6acc9d65344b5457d8bf452b86e0f822765c0 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Fri Aug 27 09:29:01 2021 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Wed Sep 01 17:32:58 2021 +0000 |
tree | 92f6494f3409578dfca1a473bc96152b6e19d15f | |
parent | 3da734a83f7d6126b377fbe9e8855474c10377b6 [diff] |
internal/postgres: keep only one module major version in search grouping When grouping search results by module, keep only the highest-scoring package from the highest tagged major version. Previously, we kept all major versions, and only ranked the higher one first, so as not to lose information (like import counts) for higher-scoring packages in a lower major version. But the results are unexpected. Fixes golang/go#47839 Change-Id: I66dedec470dd1588f02dcfed5604a6e63f020d62 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/345611 Trust: Jonathan Amsterdam <jba@google.com> Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Julie Qiu <julie@golang.org>
Pkg.go.dev is a website for discovering and evaluating Go packages and modules.
You can check it out at https://pkg.go.dev.
If you want to report a bug or have a feature suggestion, please first check the known issues to see if your issue is already being discussed. If an issue does not already exist, feel free to file an issue.
For answers to frequently asked questions, see go.dev/about.
You can also chat with us on the #pkgsite Slack channel on the Gophers Slack.
We would love your help!
Our canonical Git repository is located at go.googlesource.com/pkgsite. There is a mirror of the repository at github.com/golang/pkgsite.
To contribute, please read our contributing guide.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.