@edu.umd.cs.findbugs.annotations.SuppressWarnings( value="DM_GC", justification="Forcing GC is an essential part of releasing" + "memory for further indexing") /** causes the posting lists built up in memory to be flushed out */ protected void forceFlush() throws IOException { mp.finish(finishMemoryPosting()); System.gc(); createMemoryPostings(); memoryCheck.reset(); numberOfDocsSinceFlush = 0; }