From 7341f9de6c707920ce3ab9152f7d37d96c8115de Mon Sep 17 00:00:00 2001 From: guqing <38999863+guqing@users.noreply.github.com> Date: Mon, 5 Feb 2024 14:54:13 +0800 Subject: [PATCH] chore: remove unnecessary indices build process for lucene on startup (#5332) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind cleanup /area core /milestone 2.13.x #### What this PR does / why we need it: 移除启动时不必要的搜索引擎索引构建步骤 #### Does this PR introduce a user-facing change? ```release-note 移除启动时不必要的搜索引擎索引构建步骤 ``` --- .../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 cbc54a498..b90dcffa1 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 lombok.extern.slf4j.Slf4j; 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;