...
|
...
|
@@ -2,14 +2,15 @@ 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.index.fullbuild.BigdataSimilarSknIndexBuilder;
|
|
|
import com.yoho.search.consumer.index.fullbuild.ProductIndexIndexBuilder;
|
|
|
import com.yoho.search.consumer.index.fullbuild.TblProductNewIndexBuilder;
|
|
|
import com.yoho.search.consumer.service.daoService.Product15DaySalesNumService;
|
|
|
import com.yoho.search.consumer.service.logicService.ProductHeatValueLogicService;
|
|
|
import com.yoho.search.consumer.service.logicService.PromotionConditionLogicService;
|
|
|
import com.yoho.search.consumer.service.logicService.personal.PersonalVectorVersionManager;
|
|
|
import com.yoho.search.consumer.service.logicService.productIndex.IndexFieldBuilder;
|
|
|
import com.yoho.search.consumer.service.logicService.productIndex.ProductSalesInfoBuilder;
|
|
|
import com.yoho.search.consumer.service.logicService.ProductHeatValueLogicService;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.BeansException;
|
...
|
...
|
@@ -47,6 +48,9 @@ public class ProductIndexRebuildListener implements IYohoIndexRebuildListener, I |
|
|
private ProductSalesInfoBuilder productSalesInfoBuilder;
|
|
|
@Autowired
|
|
|
private PersonalVectorVersionManager personalVectorVersionManager;
|
|
|
@Autowired
|
|
|
private BigdataSimilarSknIndexBuilder bigdataSimilarSknIndexBuilder;
|
|
|
|
|
|
|
|
|
@Override
|
|
|
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
|
...
|
...
|
@@ -72,6 +76,7 @@ public class ProductIndexRebuildListener implements IYohoIndexRebuildListener, I |
|
|
tblProductNewIndexBuilder.init();
|
|
|
personalVectorVersionManager.calCurrentVersion();
|
|
|
promotionConditionLogicService.init();
|
|
|
bigdataSimilarSknIndexBuilder.init();
|
|
|
}
|
|
|
|
|
|
@Override
|
...
|
...
|
@@ -89,5 +94,6 @@ public class ProductIndexRebuildListener implements IYohoIndexRebuildListener, I |
|
|
productHeatValueLogicService.finish();
|
|
|
product15DaySalesNumService.finish();
|
|
|
productSalesInfoBuilder.finish();
|
|
|
bigdataSimilarSknIndexBuilder.finish();
|
|
|
}
|
|
|
} |
...
|
...
|
|