mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-05 14:19:56 -05:00
Files can be searched.
This commit is contained in:
parent
a5e8ef16b6
commit
643c86e9a4
7 changed files with 187 additions and 87 deletions
|
|
@ -31,7 +31,7 @@ def upgrade():
|
|||
size INTEGER,
|
||||
modification_datetime TIMESTAMPTZ,
|
||||
textsearch tsvector GENERATED ALWAYS AS (
|
||||
setweight(to_tsvector('english'::regconfig, COALESCE(title, ''::text)), 'A'::"char")
|
||||
setweight(to_tsvector('english'::regconfig, title), 'A'::"char")
|
||||
) stored
|
||||
)''')
|
||||
session.execute('CREATE INDEX file_path_idx ON file(path)')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue