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
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();