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
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