Skip to content

Commit

Permalink
Merge branch 'master' of [email protected]:imixs/imixs-workflow.git
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoika committed Aug 16, 2023
2 parents fe9d24d + 42adf18 commit ddb7fb0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@
import java.util.logging.Level;
import java.util.logging.Logger;

import jakarta.enterprise.event.Event;
import jakarta.inject.Inject;

import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.standard.ClassicAnalyzer;
import org.apache.lucene.document.Document;
Expand Down Expand Up @@ -75,6 +72,8 @@
import jakarta.ejb.Stateless;
import jakarta.ejb.TransactionAttribute;
import jakarta.ejb.TransactionAttributeType;
import jakarta.enterprise.event.Event;
import jakarta.inject.Inject;
import jakarta.persistence.EntityManager;
import jakarta.persistence.PersistenceContext;

Expand Down Expand Up @@ -686,7 +685,8 @@ public Directory createIndexDirectory() throws IOException {
Path luceneIndexDir = Paths.get(getLuceneIndexDir());
Directory indexDir = FSDirectory.open(luceneIndexDir);
if (!DirectoryReader.indexExists(indexDir)) {
logger.info("...lucene index directory is empty or does not yet exist, initialize the index now....");
logger.info("...lucene index directory '" + getLuceneIndexDir()
+ "' is empty or does not yet exist, rebuild index now....");
rebuildIndex(indexDir);
}
return indexDir;
Expand Down

0 comments on commit ddb7fb0

Please sign in to comment.