There's no quick way to recover from this. You'd need to derive the segments_N file by opening the files that did get written. Conceptually this should be possible (there was a recent thread about it), but I don't think anyone has actually created the tool to do so...
Mike On Wed, Oct 6, 2010 at 5:28 AM, Philippe Thomas <tho...@informatik.hu-berlin.de> wrote: > Hi, > > I was indexing some documents, but my program crashed after several days of > work. If I reopen this index it is empty. I guess the reason is that > auto-commit was not set and I never performed a commit. (Lesson learned) So > probably all documents are marked as "deleted" and re-opening the index > leads to deletion of these documents. > > However, is there a possibility to avoid this? Or do I have to re-index all > documents again? > > Best, > Philippe > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org