lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <ian....@gmail.com>
Subject Re: best way to ensure IndexWriter won't corrupt the index?
Date Wed, 25 Nov 2009 15:31:50 GMT
> What are the typical scenarios when the index will go corrupt?

Dodgy disks.

> E.g. can a simple JVM crash during indexing will cause it?

No.  See the javadocs for IndexWriter.

> What are the best way to minimalize the possibility of corrupt index?

Don't use dodgy disks.

> Copy the directory before indexing / then flipping the pointers?

Yes, that's good.  Or just make sure you've got a backup, or can
easily recreate your index from scratch.


--
Ian.

---------------------------------------------------------------------
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