IndexWriterConfig iwc = new IndexWriterConfig(Version.LUCENE_40, null);
iwc.setOpenMode(OpenMode.CREATE_OR_APPEND);
iwc.setRAMBufferSizeMB(256.0);
Vars.writerForLucene = new IndexWriter(store, iwc);
CommonFunctions localCommonFunctions = new CommonFunctions(
new File(Mater_Lector));
localCommonFunctions.indexDocs_main();
while (current_run_indexes > 0) {
synchronized (this) {
wait(5000);
}