Probably this is because autoCommit defaults to false for the new IndexWriter ctors.

You have to periodically call IndexWriter.commit() to make the changes durable & visible to readers.

Mike

Laxmilal Menaria wrote:

Hi,

I have build an application which is using Lucene2.2. Now I upgraded to
Lucene2.4.

I faced one problem. I am not able to search the documents while indexing is
running. Same code is running with lucene2.2

So is there any change due to new format which don't allow to search in
indexes while indexwriter is open.

Please let me know.

--
Thanks,
Laxmilal menaria

http://www.bucketexplorer.com/
http://www.sdbexplorer.com/
http://www.chambal.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to