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? 

Even this does not appear to work:

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

Of course if I do use close instead of commit in both places, it works as
expected. Something going on here or am i getting too much arsenic in my
diet?
-- 
View this message in context: 
http://www.nabble.com/IndexWriter.commit-with-IndexReader.reopen-tp16092586p16092586.html
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.


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

Reply via email to