Add comment.
This commit is contained in:
parent
c45b1da636
commit
2e1f09c5a6
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue