diff --git a/services/db.py b/services/db.py index 80ff09e3..d0850fd8 100644 --- a/services/db.py +++ b/services/db.py @@ -122,7 +122,7 @@ if not author_fts_index_exists: with local_session() as session: 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,''))); """.format(index_name=author_fts_index_name) )