fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wyszukiwanie książek działa - narazie bez agregowania fragmentów.
[wolnelektury.git]
/
apps
/
search
/
tests
/
index.py
diff --git
a/apps/search/tests/index.py
b/apps/search/tests/index.py
index
ed02c23
..
c2b9110
100644
(file)
--- a/
apps/search/tests/index.py
+++ b/
apps/search/tests/index.py
@@
-3,6
+3,7
@@
from __future__ import with_statement
from search import Index, Search
from catalogue import models
from catalogue.test_utils import WLTestCase
from search import Index, Search
from catalogue import models
from catalogue.test_utils import WLTestCase
+from lucene import PolishAnalyzer, Version
#from nose.tools import raises
from os import path
#from nose.tools import raises
from os import path
@@
-14,7
+15,7
@@
class BookSearchTests(WLTestCase):
txt = path.join(path.dirname(__file__), 'files/fraszka-do-anusie.xml')
self.book = models.Book.from_xml_file(txt)
txt = path.join(path.dirname(__file__), 'files/fraszka-do-anusie.xml')
self.book = models.Book.from_xml_file(txt)
- search = Index()
+ search = Index()
#PolishAnalyzer(Version.LUCENE_34))
with search:
search.index_book(self.book)
print "index: %s" % search
with search:
search.index_book(self.book)
print "index: %s" % search