add: profile and full search
This commit is contained in:
parent
b8b0ef7f21
commit
3e4ee8126a
52 changed files with 897 additions and 484 deletions
4
sql_changes/posts_tscvector_content.sql
Normal file
4
sql_changes/posts_tscvector_content.sql
Normal file
|
@ -0,0 +1,4 @@
|
|||
ALTER TABLE posts
|
||||
ADD COLUMN tsvector_content tsvector GENERATED ALWAYS AS (to_tsvector ('english', coalesce(content, ''))) STORED;
|
||||
|
||||
CREATE INDEX tsvector_content_idx ON posts USING GIN (tsvector_content);
|
Loading…
Add table
Add a link
Reference in a new issue