X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/99f6dd4f1ff0390de9a9bbd4e3352b953cb9a235..c6d5dd71ad0d9bae811cc9002248d9399c7fdff7:/apps/search/management/commands/snippets.py?ds=inline diff --git a/apps/search/management/commands/snippets.py b/apps/search/management/commands/snippets.py index 77065471b..40310eda1 100755 --- a/apps/search/management/commands/snippets.py +++ b/apps/search/management/commands/snippets.py @@ -24,7 +24,7 @@ class Command(BaseCommand): def handle(self, *args, **opts): from catalogue.models import Book - import search + from search.index import Search if opts['check']: sfn = glob(settings.SEARCH_INDEX+'snippets/*') @@ -39,7 +39,7 @@ class Command(BaseCommand): except UnicodeDecodeError, ude: print "error in snippets %d" % bkid if opts['check2']: - s = search.Search() + s = Search() reader = s.searcher.getIndexReader() numdocs = reader.numDocs() for did in range(numdocs):