On Tue, Jan 12, 2010 at 6:10 PM, jchang <jchangkihat...@gmail.com> wrote:

> Does anybody know how this works out with service restarts (both orderly
> shutdown and a crash)?  If the service goes down while indexed items are in
> RAMDir but not on disk, are they lost?  Or is there some kind of log
> recovery?

Lucene exposes commit() for exactly this reason -- on ungraceful
shutdown (ie, you didn't succeed in calling IndexWriter.close), the
index will be at the last successful commit() (or close(), which calls
commit internally).  As with Zoie, it's still the app's job to replay
updates after the last commit.

Note this is fully orthogonal to whether you use an NRT reader or not.

NRT reader "simply" lets you search the full index, including
un-committed changes.

Mike

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

Reply via email to