fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't track included API requests.
[wolnelektury.git]
/
apps
/
search
/
management
/
commands
/
snippets.py
diff --git
a/apps/search/management/commands/snippets.py
b/apps/search/management/commands/snippets.py
index
7706547
..
40310ed
100755
(executable)
--- 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
def handle(self, *args, **opts):
from catalogue.models import Book
-
import s
earch
+
from search.index import S
earch
if opts['check']:
sfn = glob(settings.SEARCH_INDEX+'snippets/*')
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']:
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):
reader = s.searcher.getIndexReader()
numdocs = reader.numDocs()
for did in range(numdocs):