5556575859606162636465
doc.addTerm(term); db.addDocument(doc); } // make sure to commit the database so the documents get written to disk db.commit(); } private static void usage() { System.err.println("Usage:");