mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Changing weight to lowest.
This commit is contained in:
parent
3cb2aaf6cf
commit
b594f9761a
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ def upgrade():
|
|||
ADD COLUMN textsearch tsvector
|
||||
GENERATED ALWAYS AS (
|
||||
setweight(to_tsvector('english'::regconfig, title), 'A') ||
|
||||
setweight(to_tsvector('english'::regconfig, caption), 'B')
|
||||
setweight(to_tsvector('english'::regconfig, caption), 'D')
|
||||
) STORED
|
||||
''')
|
||||
session.execute('CREATE INDEX IF NOT EXISTS video_textsearch_idx ON video USING GIN(textsearch)')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue