Unless you have hard evidence that FSDirectories are too slow,
you shouldn't IMO. The only place I've found RAMDirectories
useful (so far) is in unit tests where I'm creating a very small
in-memory index, running a few tests, and throwing it away.
My first question for this is "why are you using
I have an index on the disk. I'm using RAMDirectory( String ) to load
index in RAM.
I need from time to time to reload the index (when it is not current
anymore), but I keep getting Out Of memory exception. Making the jvm
heap bigger helps, but only allow more reloading, eventually it will
throw t