This commit is contained in:
parent
a149091e3c
commit
ccc5c98a14
|
@ -122,7 +122,7 @@ if not author_fts_index_exists:
|
||||||
with local_session() as session:
|
with local_session() as session:
|
||||||
session.bind.execute(
|
session.bind.execute(
|
||||||
"""
|
"""
|
||||||
CREATE INDEX {index_name} ON authors
|
CREATE INDEX {index_name} ON author
|
||||||
USING gin(to_tsvector('russian', COALESCE(name,'') || ' ' || COALESCE(bio,'') || ' ' || COALESCE(about,'')));
|
USING gin(to_tsvector('russian', COALESCE(name,'') || ' ' || COALESCE(bio,'') || ' ' || COALESCE(about,'')));
|
||||||
""".format(index_name=author_fts_index_name)
|
""".format(index_name=author_fts_index_name)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user