...
|
...
|
@@ -3,6 +3,8 @@ package com.yoho.search.consumer.index.common.impl; |
|
|
import com.yoho.search.base.utils.ISearchConstants;
|
|
|
import com.yoho.search.consumer.index.common.IYohoIndexRebuildListener;
|
|
|
import com.yoho.search.consumer.service.logic.ProductVectorFeatureLogicService;
|
|
|
import com.yoho.search.consumer.service.logic.tools.ForbiddenPageIdsLogicService;
|
|
|
|
|
|
import org.springframework.beans.factory.InitializingBean;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
...
|
...
|
@@ -15,9 +17,10 @@ public class ProductIndexRebuildListener implements IYohoIndexRebuildListener, I |
|
|
|
|
|
@Autowired
|
|
|
private IndexRebuildListenerMgr indexRebuildListenerMgr;
|
|
|
|
|
|
@Autowired
|
|
|
private ProductVectorFeatureLogicService productVectorFeatureLogicService;
|
|
|
@Autowired
|
|
|
private ForbiddenPageIdsLogicService forbiddenPageIdsLogicService;
|
|
|
|
|
|
@Override
|
|
|
public void afterPropertiesSet() throws Exception {
|
...
|
...
|
@@ -26,7 +29,8 @@ public class ProductIndexRebuildListener implements IYohoIndexRebuildListener, I |
|
|
|
|
|
@Override
|
|
|
public void beforeRebuild() {
|
|
|
productVectorFeatureLogicService.updateGenerateDate();
|
|
|
forbiddenPageIdsLogicService.reloadForbiddenPageIds();
|
|
|
productVectorFeatureLogicService.updateGenerateDate();
|
|
|
}
|
|
|
|
|
|
@Override
|
...
|
...
|
|