*/
private void doIndex() throws InterruptedException{
try {
File tempIndexDir = new File(tempIndexPath);
Directory indexPath = FSDirectory.open(new File(tempIndexDir, "main"));
Analyzer analyzer = new StandardAnalyzer(Version.LUCENE_CURRENT);
indexWriter = new IndexWriter(indexPath, analyzer, true, IndexWriter.MaxFieldLength.UNLIMITED);
indexWriter.deleteAll();
indexWriter.setMergeFactor(INDEX_MERGE_FACTOR); //for better performance
// Create IndexWriterWorker
log.info("Running with " + numberIndexWriter + " IndexerWriterWorker");