On Thu, Mar 6, 2008 at 8:02 AM, Sridhar Raman <[EMAIL PROTECTED]> wrote:
> > This way no reader will ever see the changes until you successfully
>  > close the writer.  If the machine crashes the index is still in the
>  > starting state as of when the writer was first opened.
>  Ok, I have a slight doubt in this.  Say I have gone ahead with Approach 1
>  If I have opened the writer with autoCommit=false, and the system crashes,
>  does it mean that the changes made to IdxSrch are lost?

Since Lucene buffers in memory, you will always have the risk of
losing recently added documents that haven't been flushed yet.
Committing on every document would be too slow to be practical.

-Yonik

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

Reply via email to