writer.addDocument(doc);// add Document to index
}
int numIndexed = writer.docCount();
writer.optimize();
writer.close();
long end = new Date().getTime();
System.out.println("Indexing " + numIndexed + " files took " + (end - start)+ " milliseconds");
ExtraInformation EI= new ExtraInformation(index, field);