lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: Swapping between indexes
Date Thu, 06 Mar 2008 14:57:11 GMT
On Thu, Mar 6, 2008 at 8:02 AM, Sridhar Raman <sridhar.raman@gmail.com> 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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message