-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Login Victor <[email protected]>
- Loading branch information
Showing
5 changed files
with
59 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
drop index concurrently shortlink.idx_fts_link_view; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CREATE OR REPLACE FUNCTION make_tsvector_link_view(description TEXT, keywords TEXT) | ||
RETURNS tsvector AS $$ | ||
BEGIN | ||
RETURN (setweight(to_tsvector('simple', keywords),'A') || | ||
setweight(to_tsvector('simple', description), 'B')); | ||
END | ||
$$ LANGUAGE 'plpgsql' IMMUTABLE; | ||
|
||
CREATE INDEX idx_fts_link_view ON shortlink.link_view | ||
USING gin(make_tsvector_link_view(meta_description, meta_keywords)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
internal/services/link/infrastructure/store/crud/query/type.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.