You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Cheng <zh...@gmail.com> on 2012/01/09 05:04:48 UTC

Build RAMDirectory on FSDirectory, and then synchronzing the two

Hi,

I new a RAMDirectory based upon a FSDirectory. After a few modifications, I
would like to synchronize the two.

Some on the mailing list provided a solution that uses addIndex() function.

However, the FSDirectory simply combines with the RAMDirectory, and the
size doubled.

How can I do a real synchronization?

Thanks