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();