RE: Detect a corrupted index

2013-07-29 Thread ABlaise
Thanks a lot ! I must have been very tired on friday not to be able to find the CheckIndex class... I looked for it though in the documentation but I guess I was not even able to type correctly on my keyboard... This works well but doesn't detect all corruption, I had to add the following test : if

RE: Detect a corrupted index

2013-07-26 Thread Zhang, Lisheng
Hi, I used in the following code to detect data corruption in lucene 4.3.0: / import org.apache.lucene.index.CheckIndex; ... CheckIndex checkIndex = new CheckIndex(getLuceneDirectory(folderPath)); CheckIndex.Status status = checkIndex.checkIndex();