From a3b3f36388546250685625b6a98b482734e9880c Mon Sep 17 00:00:00 2001 From: guqing Date: Mon, 5 Feb 2024 14:33:48 +0800 Subject: [PATCH] chore: remove unnecessary indices build process for lucene on startup --- .../src/main/java/run/halo/app/search/IndicesInitializer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/src/main/java/run/halo/app/search/IndicesInitializer.java b/application/src/main/java/run/halo/app/search/IndicesInitializer.java index cbc54a498e..b90dcffa1d 100644 --- a/application/src/main/java/run/halo/app/search/IndicesInitializer.java +++ b/application/src/main/java/run/halo/app/search/IndicesInitializer.java @@ -5,11 +5,11 @@ import org.springframework.boot.context.event.ApplicationStartedEvent; import org.springframework.context.event.EventListener; import org.springframework.scheduling.annotation.Async; -import org.springframework.stereotype.Component; import org.springframework.util.StopWatch; @Slf4j -@Component +// @Component +// TODO Remove this class on next version public class IndicesInitializer { private final IndicesService indicesService;