Hello, Andi.
AV> 2. implement an FSDirectory in python. For an example, see the
AV> Test_PythonDirectory.py unit tests. I don't expect python to have the
AV> same 2gb file size limit.
hmm. this test fails for me on windows. here is excerpt:
======================================================================
ERROR: test_removeDocuments (__main__.PythonDirectoryTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\workshop\PyLucene\test\test_PyLucene.py", line 200, in
test_removeDocuments
self.test_indexDocument()
File "D:\workshop\PyLucene\test\test_PyLucene.py", line 73, in
test_indexDocument
self.closeStore(store, writer)
File "D:\workshop\PyLucene\test\test_PythonDirectory.py", line 175, in
closeStore
if arg: arg.close()
File "D:\workshop\PyLucene\test\test_PythonDirectory.py", line 137, in
renameFile
os.path.join( self.path, tname ) )
OSError: [Errno 17] File exists
======================================================================
ERROR: test_searchDocuments (__main__.PythonDirectoryTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\workshop\PyLucene\test\test_PyLucene.py", line 137, in
test_searchDocuments
self.test_indexDocument()
File "D:\workshop\PyLucene\test\test_PyLucene.py", line 73, in
test_indexDocument
self.closeStore(store, writer)
File "D:\workshop\PyLucene\test\test_PythonDirectory.py", line 175, in
closeStore
if arg: arg.close()
File "D:\workshop\PyLucene\test\test_PythonDirectory.py", line 137, in
renameFile
os.path.join( self.path, tname ) )
OSError: [Errno 17] File exists
======================================================================
ERROR: test_searchDocumentsWithMultiField (__main__.PythonDirectoryTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\workshop\PyLucene\test\test_PyLucene.py", line 153, in
test_searchDocumentsWithMultiField
self.test_indexDocument()
File "D:\workshop\PyLucene\test\test_PyLucene.py", line 73, in
test_indexDocument
self.closeStore(store, writer)
File "D:\workshop\PyLucene\test\test_PythonDirectory.py", line 175, in
closeStore
if arg: arg.close()
File "D:\workshop\PyLucene\test\test_PythonDirectory.py", line 137, in
renameFile
os.path.join( self.path, tname ) )
OSError: [Errno 17] File exists
----------------------------------------------------------------------
Ran 10 tests in 0.266s
FAILED (errors=10)
--
Yura Smolsky,
http://altervisionmedia.com/
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev