lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul.Illingwo...@saaconsultants.com
Subject Committing IndexReader changes without closing
Date Fri, 07 Oct 2005 13:02:55 GMT




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


Mime
View raw message