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 Pa...@saaconsultants.com on 2005/10/07 15:02:55 UTC

Committing IndexReader changes without closing




Hello,

I have a situation where I wish to open an IndexReader and keep it open. I
never want to add anything to this index but do want to delete from it.
Periodically I would like to flush any deletions that may have been made to
the index to disk (to protect the changes from being lost if the server
goes down). It seems that the IndexReader.commit() method does this but it
is protected.

Are there there any reasons (other than it being protected) why I could not
call commit() externally in this way?

Regards,

Paul I.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org