From 04c51a65980820dfab41ffd730ccba33963d4d56 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 24 Jun 2021 10:01:07 -0700 Subject: [PATCH] Uses simple dictionary for names --- bookwyrm/migrations/0077_auto_20210623_2155.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/migrations/0077_auto_20210623_2155.py b/bookwyrm/migrations/0077_auto_20210623_2155.py index e41960d1..4773e6bd 100644 --- a/bookwyrm/migrations/0077_auto_20210623_2155.py +++ b/bookwyrm/migrations/0077_auto_20210623_2155.py @@ -42,7 +42,7 @@ class Migration(migrations.Migration): setweight(to_tsvector('pg_catalog.english', coalesce(new.title, '')), 'A') || setweight(to_tsvector('pg_catalog.english', coalesce(new.subtitle, '')), 'B') || setweight(to_tsvector('pg_catalog.english', coalesce(new.series, '')), 'D') || - (SELECT setweight(to_tsvector('pg_catalog.english', coalesce(array_to_string(array_agg(bookwyrm_author.name), ' '), '')), 'C') + (SELECT setweight(to_tsvector('simple', coalesce(array_to_string(array_agg(bookwyrm_author.name), ' '), '')), 'C') FROM bookwyrm_book LEFT OUTER JOIN bookwyrm_book_authors ON bookwyrm_book.id = bookwyrm_book_authors.book_id