498499500501502503504505506507508
iw.commit(); IndexCommit ic = sdp.snapshot(); for (String name : ic.getFileNames()) { //distribute, and backup //System.out.println(names); assertTrue(dir.fileExists(name)); } } catch (Exception e) { throw new RuntimeException(e); } }