X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/1cf1830b0f97f0c517862c8a2030e2fc4d76108e..124258c72bb9e69e6336de195f3a3b3e74509b95:/apps/search/tests/index.py diff --git a/apps/search/tests/index.py b/apps/search/tests/index.py index ed02c2354..5b37cf05a 100644 --- a/apps/search/tests/index.py +++ b/apps/search/tests/index.py @@ -1,12 +1,15 @@ from __future__ import with_statement -from search import Index, Search +from search import Index, Search, IndexStore from catalogue import models from catalogue.test_utils import WLTestCase +from lucene import PolishAnalyzer, Version #from nose.tools import raises from os import path + + class BookSearchTests(WLTestCase): def setUp(self): WLTestCase.setUp(self) @@ -14,7 +17,7 @@ class BookSearchTests(WLTestCase): 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