commit | 880f8cc95c4a3e982022581a65fa05764ca1a631 | [log] [tgz] |
---|---|---|
author | Julie Qiu <julie@golang.org> | Tue Sep 07 10:49:01 2021 -0400 |
committer | Julie Qiu <julie@golang.org> | Tue Sep 07 15:17:43 2021 +0000 |
tree | 88d6e48a2b5b19613930ba230108dbd670c350b1 | |
parent | 7624e4766ea785e034eef99e45d5df11778722d0 [diff] |
migrations: add column search_documents.ln_imported_by_count Column search_documents.ln_imported_by_count is added, since both symbol and package search use that value for computing scores. At the moment, symbol search uses symbol_search_documents.ln_imported_by_count (which can be dropped after this column is populated), and package search computes the value for each result during search. Instead, this column can be used. trigger_modify_ln_imported_by_count is used to set the value of ln_imported_by_count every time imported_by_count is upserted. For golang/go#44142 Change-Id: Icce55811e0c5fce5e5607787aaf11cb3bf65b818 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/347989 Trust: Julie Qiu <julie@golang.org> Run-TryBot: Julie Qiu <julie@golang.org> Reviewed-by: Jamal Carvalho <jamal@golang.org> TryBot-Result: kokoro <noreply+kokoro@google.com>
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.