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(physicalDirectoryName, 
        
!IndexReader.indexExists(physicalDirectoryName));
returnValue = /*new RAMDirectory(*/fsDirectory/*)*/;

This code gives me a non-working Directory:

FSDirectory fsDirectory =
FSDirectory.getDirectory(physicalDirectoryName, 
        
!IndexReader.indexExists(physicalDirectoryName));
returnValue = new RAMDirectory(fsDirectory);

Please help!
The only solution I can think of involves pulling out my hair...
:(


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to