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 = []
idx.index_book(b)
print 'Reindexing tags.'
idx.index_tags()
- idx.close()