Andi Vajda wrote:
This point about buffering brings up another point. Currently, there is no public way to tell the open IndexWriter to flush its Directory. This makes it difficult to use several transactions during the lifetime of the IndexWriter.

The only thing in the Directory API which is required to be atomic and that's used to implement commit, is renameFile(). This is called when all IndexOutputs have been closed. Immediately after the rename is completed is the appropriate place to commit a transaction. Perhaps this should be more explicit in the API...


Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to