X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/4fea8503c1f680b7e6942dfae6f0e7a8589e47ea..5c3f2f665243a32510f8097bf6c0582fc14d2fd3:/apps/catalogue/models.py diff --git a/apps/catalogue/models.py b/apps/catalogue/models.py index 5846f5343..3db237e3c 100644 --- a/apps/catalogue/models.py +++ b/apps/catalogue/models.py @@ -626,7 +626,7 @@ class Book(models.Model): return result.wait() def search_index(self): - with search.Index() as idx: + with search.ReusableIndex() as idx: idx.index_book(self) @classmethod