I don't understand this problem about Lucene indexwriter. After I open the indexwriter, add a few new documents, then close it. Reopen the indexwriter using the same directory, add a few new documents. Then all previous documents are gone. I just could not figure it out why it behaves like that.
create
argument to the IndexWriter ctor (replaced byIndexWriterConfig.OpenMode
in later versions)? Or are you actually refering to an IndexDeletionPolicy? – femtoRgon