You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Mark Miller <ma...@gmail.com> on 2008/03/17 14:09:00 UTC

IndexWriter.commit with IndexReader.reopen

I was playing around with LUCENE-831 last night and think I may have run 
into a bug?

Can anyone verify that this should work?

Open IndexWriter
AddDocs
Commit IndexWriter
Open Reader
SeeDocs
AddNewDocs
Commit IndexWriter
ReopenReader
SeeNewDocs

I have not been able to SeeNewDocs. The IndexReader thinks it is current 
based on based on IndexReader.isCurrent();

Is this a valid sequence or am I way off base here?

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