It looks like the main directory file, segments_N is corrupted. This probably means that the power loss happened while a commit was running.
If this is the case, this means that there is some chance that an older segments_N file is present in your directory, and that the referenced segments are still present and valid. If there is such a file, try to remove your corrupted segments_ls0l
file and see:
- whether Lucene manages to open the index,
- what data you are missing.
Otherwise, there are some threads one Lucene user mailing-list talking about regenerating the segments_N file.
- http://www.gossamer-threads.com/lists/lucene/java-user/102493
- http://www.gossamer-threads.com/lists/lucene/java-user/39744
Make sure to backup your directory before performing any modification.
Read full article from How to repair corrupted lucene index? - Stack Overflow
No comments:
Post a Comment