diff --git a/src/main/java/com/perales/sepomex/service/ColoniaService.java b/src/main/java/com/perales/sepomex/service/ColoniaService.java index 2d767f5..86dc2f4 100644 --- a/src/main/java/com/perales/sepomex/service/ColoniaService.java +++ b/src/main/java/com/perales/sepomex/service/ColoniaService.java @@ -267,7 +267,7 @@ public void indexDb() throws InterruptedException { FullTextEntityManager fullTextEntityManager = Search.getFullTextEntityManager(em); - fullTextEntityManager.createIndexer().optimizeOnFinish(true).start(); + fullTextEntityManager.createIndexer().startAndWait(); } public List search(Colonia colonia){