RE: Switching from FSDirectory to RAMDirectory

2005-09-07 Thread Peter Gelderbloem
from FSDirectory to RAMDirectory : Hi, : I find that unit tests that modify an existing record in the Lucene : index by removing it , modifying it and re-adding it, fails if I switch : from an FSDirectory to a RAMDirectory. Could you please post a full and complete unit test that demonstrates the

Re: Switching from FSDirectory to RAMDirectory

2005-09-06 Thread Chris Hostetter
: Hi, : I find that unit tests that modify an existing record in the Lucene : index by removing it , modifying it and re-adding it, fails if I switch : from an FSDirectory to a RAMDirectory. Could you please post a full and complete unit test that demonstrates the problem. Based on your descript

Switching from FSDirectory to RAMDirectory

2005-09-06 Thread Peter Gelderbloem
Hi, I find that unit tests that modify an existing record in the Lucene index by removing it , modifying it and re-adding it, fails if I switch from an FSDirectory to a RAMDirectory. This code gives me a Directory that works: FSDirectory fsDirectory = FSDirectory.getDirectory(physicalDirectoryNam