boolean createNewIndex = luceneIndexDir.exists();
logger.info("Create new index: {}", !createNewIndex);
indexDefinitionManager = new IndexDefinitionManager(definitionGraph);
try {
graphIndexer = new GraphIndexer(definitionGraph, cgProvider.getContentGraph(),
FSDirectory.open(luceneIndexDir), !createNewIndex);
if(optimizePeriod != null && optimizePeriod >= 1) {
long period = optimizePeriod * 60000;
long delay = optimizeDelay * 60000;
logger.info("Scheduling optimizations with delay {} min and period {} min", delay, period);