lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Sturge <tstu...@metaweb.com>
Subject calling commit() on IndexReader
Date Tue, 31 Jul 2007 23:56:13 GMT
Can anyone explain to me why commit() on IndexReader is a protected method?

I want to do periodic deletes from my main index. I don't want to reopen 
the index (all that is changing are things are being deleted), so I 
don't want to call close(), but I can't call commit() from outside the 
class directly (which writes the *.del file)

Is this done for my protection or for my annoyance? (meaning, if I 
subclass just this to make the method public am I going to cause any 
problems?)

Thanks,

Tim

---------------------------------------------------------------------
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