This commit is contained in:
parent
146d49be5b
commit
07a9e7ef56
|
@ -121,7 +121,7 @@ def create_fts_index(table_name, fts_index_name):
|
||||||
)
|
)
|
||||||
if not author_fts_index_exists:
|
if not author_fts_index_exists:
|
||||||
with local_session() as session:
|
with local_session() as session:
|
||||||
session.bind.execute(
|
session.execute(
|
||||||
"""
|
"""
|
||||||
CREATE INDEX {index_name} ON {author_table_name}
|
CREATE INDEX {index_name} ON {author_table_name}
|
||||||
USING gin(to_tsvector('russian', COALESCE(name,'') || ' ' || COALESCE(bio,'') || ' ' || COALESCE(about,'')));
|
USING gin(to_tsvector('russian', COALESCE(name,'') || ' ' || COALESCE(bio,'') || ' ' || COALESCE(about,'')));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user