Hi, in theory the index should' t corrupt even if you killed the JVM at any time. Of course some updates might be lost, but the design of Lucene's indexes should be robust enough to prevent "corruption".
Generally speaking, there's nothing different than any disk-stored recommendation: pick a safe filesystem, no exotic filesystem tuning flags unless you know what you're doing, make sure your disks don't fail.
In practice corruption is of course possible because of bugs as no software is perfect, but it's very unlikely as in this case we're talking about code which is being actively tested by lots of people, in lots of different use cases and workloads.
Might be worth keeping an eye on the Lucene JIRA, that's where you'll find if anyone opens an issue: https://issues.apache.org/jira/browse/LUCENE ; the only couple of times I've seen a corruption issue being reported, it as however resolved at record speed. So another strategy is to make sure you keep updated.
_________________ Sanne http://in.relation.to/
|