|
@@ -88,13 +88,13 @@ public class IndexRebuildJob implements ApplicationEventPublisherAware { |
|
@@ -88,13 +88,13 @@ public class IndexRebuildJob implements ApplicationEventPublisherAware { |
88
|
logger.info("indexRebuildJob rebuildSuggestIndex end----[end={}][cost={}]", System.currentTimeMillis(), (System.currentTimeMillis() - begin));
|
88
|
logger.info("indexRebuildJob rebuildSuggestIndex end----[end={}][cost={}]", System.currentTimeMillis(), (System.currentTimeMillis() - begin));
|
89
|
}
|
89
|
}
|
90
|
|
90
|
|
91
|
-// @Scheduled(cron = "0 50 * * * ?")
|
|
|
92
|
-// public void rebuildTblProductIndex() {
|
|
|
93
|
-// long begin = System.currentTimeMillis();
|
|
|
94
|
-// logger.info("indexRebuildJob rebuildTblProductIndex start----[begin={}]", begin);
|
|
|
95
|
-// this.rebuildIndexWithlog(ISearchConstants.INDEX_NAME_TBLPRODUCT);
|
|
|
96
|
-// logger.info("indexRebuildJob rebuildTblProductIndex end----[end={}][cost={}]", System.currentTimeMillis(), (System.currentTimeMillis() - begin));
|
|
|
97
|
-// }
|
91
|
+ @Scheduled(cron = "0 50 * * * ?")
|
|
|
92
|
+ public void rebuildTblProductIndex() {
|
|
|
93
|
+ long begin = System.currentTimeMillis();
|
|
|
94
|
+ logger.info("indexRebuildJob rebuildTblProductIndex start----[begin={}]", begin);
|
|
|
95
|
+ this.rebuildIndexWithlog(ISearchConstants.INDEX_NAME_TBLPRODUCT);
|
|
|
96
|
+ logger.info("indexRebuildJob rebuildTblProductIndex end----[end={}][cost={}]", System.currentTimeMillis(), (System.currentTimeMillis() - begin));
|
|
|
97
|
+ }
|
98
|
|
98
|
|
99
|
private void rebuildIndexWithlog(String indexName) {
|
99
|
private void rebuildIndexWithlog(String indexName) {
|
100
|
try {
|
100
|
try {
|