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