SV: Flushing RAMDir into FSDir

2006-06-28 Thread Marcus Falck
I'm aware of that the FSDirectory actually stores documents in a RAMDir until merge time. But the thing is that I also want to store the documents in the RAMDir as snapshots on the harddrive until they have been flushed down to the FSDir. So I won't loose any documents in a crash. Does anybody

SV: Flushing RAMDir into FSDir

2006-06-28 Thread Marcus Falck
Did a clone of the AddIndexes method. See code below. Anybody seeing any problems with using the AddIndexesWithoutOptimize method ? // Original public virtual void AddIndexes(Directory[] dirs) { lock (this) {