lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless" <>
Subject Re: recovering an index from RAM disk.
Date Tue, 27 Feb 2007 11:47:04 GMT
"Martin Spamer" wrote:
> I generate my index to the file system and load that index into a
> RAMDirectory for speed.  If my indexer fails the directory based index
> can be left in an inadequate state for my needs.  I therefore wish to
> flush the current index from the RAMDirectory back to the File system.
> The RAMDirectory class doesn't seem to support this feature.  Is this
> possible and can anybody give me some pointers ?

As of Lucene 2.1, there is a static Directory.copy method that you could
use to copy the full contents of your RAMDirectory back to an


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message