From 2e1f09c5a6db0812bce6a3af88afe895d91b7c4c Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Mon, 27 Mar 2023 17:33:57 +0200 Subject: [PATCH] Add comment. --- .../andrewlalis/gymboardsearch/GymboardSearchApplication.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gymboard-search/src/main/java/nl/andrewlalis/gymboardsearch/GymboardSearchApplication.java b/gymboard-search/src/main/java/nl/andrewlalis/gymboardsearch/GymboardSearchApplication.java index 3852c43..3db784c 100644 --- a/gymboard-search/src/main/java/nl/andrewlalis/gymboardsearch/GymboardSearchApplication.java +++ b/gymboard-search/src/main/java/nl/andrewlalis/gymboardsearch/GymboardSearchApplication.java @@ -26,6 +26,10 @@ public class GymboardSearchApplication { private final JdbcIndexGenerator gymIndexGenerator; private final JdbcIndexGenerator userIndexGenerator; + /** + * Scheduled task to regenerate the indexes regularly, which is good enough + * for now. + */ @Scheduled(fixedRate = 1, timeUnit = TimeUnit.MINUTES) public void reIndex() { gymIndexGenerator.generate();