public void forceMerge(int maxSegmentCount) throws IOException {
  LuceneTestCase.maybeChangeLiveIndexWriterConfig(r,w.getConfig());
  w.forceMerge(maxSegmentCount);
}

public void forceMerge ( int maxSegmentCount ) throws IOException { LuceneTestCase . maybeChangeLiveIndexWriterConfig ( r , w . getConfig ( ) ) ; w . forceMerge ( maxSegmentCount ) ; }
forces a forcemerge . < p > note : this should be avoided in tests unless absolutely necessary , as it will result in less test coverage .
