public static CheckIndex.Status checkIndex(Directory dir) throws IOException {
  return checkIndex(dir,true);
}

public static CheckIndex . Status checkIndex ( Directory dir ) throws IOException { return checkIndex ( dir , true ) ; }
this runs the checkindex tool on the index in . if any issues are hit , a runtimeexception is thrown ; else , true is returned .
