right. If you have cfs files in the index directory, there is a thread discussing the method of regenerating the segment files:
http://www.gossamer-threads.com/lists/lucene/java-user/39744 backup before doing changes! source on SO: http://stackoverflow.com/questions/9935177/how-to-repair-corrupted-lucene-index On Tue, Mar 25, 2014 at 11:57 AM, zqzuk <ziqizh...@hotmail.co.uk> wrote: > 1. No, if IndexReader is on I get the same error message from checkindex > 2. It doesnt do any thing but giving that error message I posted before > then > quit. The full print of the error trace is: > > > > Opening index @ E:\...\zookeeper\solr\collec > tion1\data\index > > ERROR: could not read any segments file in directory > java.io.FileNotFoundException: E:\...\zookee > per\solr\collection1\data\index\segments_b5tb (The system cannot find the > file s > pecified) > at java.io.RandomAccessFile.open(Native Method) > at java.io.RandomAccessFile.<init>(Unknown Source) > at > org.apache.lucene.store.MMapDirectory.openInput(MMapDirectory.java:22 > 3) > at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:285) > at > org.apache.lucene.index.SegmentInfos$1.doBody(SegmentInfos.java:347) > at > org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfo > s.java:783) > at > org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfo > s.java:630) > at org.apache.lucene.index.SegmentInfos.read(SegmentInfos.java:343) > at > org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:383) > at org.apache.lucene.index.CheckIndex.main(CheckIndex.java:1777) > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Fixing-corrupted-index-tp4126644p4126837.html > Sent from the Solr - User mailing list archive at Nabble.com. > -- Dmitry Blog: http://dmitrykan.blogspot.com Twitter: http://twitter.com/dmitrykan