Hi, 

> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 
> However, after optimizing, suddenly those new documents 
> appear.  Its almost as if the new segments are not being read 
> by the IndexReader.
> 
> Any thoughts?

You need to close IndexWriter before open IndexReader. Or reopen
IndexReader.

See TestIndexReader.java:: private void deleteReaderWriterConflict(boolean
optimize) throws IOException
for more info.

Pasha Bizhan
http://lucenedotnet.com
 


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

Reply via email to