diff options
| author | Julie Qiu <julie@golang.org> | 2021-07-02 11:30:29 -0400 |
|---|---|---|
| committer | Julie Qiu <julie@golang.org> | 2021-07-13 16:22:21 +0000 |
| commit | ebfc9de34b8595b294b23ed9dad6d627ee7cd6f5 (patch) | |
| tree | e0cb9dc7f60f4846d1c2c0f4a220175b8beb4282 /internal/postgres/insert_module.go | |
| parent | f35d711d9d7082ea80a81b666e5c53a3a5ef392e (diff) | |
| download | go-x-pkgsite-ebfc9de34b8595b294b23ed9dad6d627ee7cd6f5.tar.xz | |
internal/postgres: change symbolsearch to index underscores
The symbol search insert and update queries are changed to index
underscores as slashes. For example, "A_B" is indexed as "A/B".
Underscores are treated as "blanks" by the postgres parser. However, we
want "A_B" to be ranked lower than just "A" in a search for "A", not
equally.
For golang/go#44142
Change-Id: I4399c046adae33f69cb806012a68127ab21cb937
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/332413
Trust: Julie Qiu <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Diffstat (limited to 'internal/postgres/insert_module.go')
0 files changed, 0 insertions, 0 deletions
