From 6c916ba46721835a11f260fc9b3b7db9727dcf42 Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Fri, 26 Oct 2012 13:00:50 +0200 Subject: [PATCH] reindex command should use new interface --- apps/search/management/commands/reindex.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/search/management/commands/reindex.py b/apps/search/management/commands/reindex.py index 3b6517f2e..b1ec9c3d7 100755 --- a/apps/search/management/commands/reindex.py +++ b/apps/search/management/commands/reindex.py @@ -14,9 +14,8 @@ class Command(BaseCommand): def handle(self, *args, **opts): from catalogue.models import Book import search - idx = search.ReusableIndex() - idx.open() - + idx = search.Index() + if not opts['just_tags']: if args: books = [] @@ -33,4 +32,3 @@ class Command(BaseCommand): idx.index_book(b) print 'Reindexing tags.' idx.index_tags() - idx.close() -- 2.20.1