|
|
package com.yoho.search.consumer.index.fullbuild.listener;
|
|
|
|
|
|
import com.yoho.search.base.utils.ISearchConstants;
|
|
|
import com.yoho.search.consumer.service.logicService.cache.BasicDataCacheService;
|
|
|
import com.yoho.search.consumer.service.logicService.personal.PersonalVectorVersionManager;
|
|
|
import com.yoho.search.consumer.service.logicService.productIndex.IndexFieldBuilder;
|
|
|
import org.slf4j.Logger;
|
...
|
...
|
@@ -29,8 +28,6 @@ public class ProductIndexRebuildListener implements IYohoIndexRebuildListener, I |
|
|
private IndexRebuildListenerMgr indexRebuildListenerMgr;
|
|
|
@Autowired
|
|
|
private PersonalVectorVersionManager personalVectorVersionManager;
|
|
|
@Autowired
|
|
|
private BasicDataCacheService basicDataCacheService;
|
|
|
|
|
|
@Override
|
|
|
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
|
...
|
...
|
@@ -49,19 +46,6 @@ public class ProductIndexRebuildListener implements IYohoIndexRebuildListener, I |
|
|
|
|
|
@Override
|
|
|
public void beforeRebuild() {
|
|
|
//for yoho in productIndex
|
|
|
basicDataCacheService.clearBrand();
|
|
|
basicDataCacheService.clearProductSort();
|
|
|
basicDataCacheService.clearShop();
|
|
|
basicDataCacheService.clearCsBrandKeyword();
|
|
|
//for TBL in productIndex
|
|
|
basicDataCacheService.clearTblBrand();
|
|
|
basicDataCacheService.clearTblSite();
|
|
|
basicDataCacheService.clearTblYohoSortRelation();
|
|
|
basicDataCacheService.clearSizeNameMap();
|
|
|
basicDataCacheService.clearSortMap();
|
|
|
//for UFO in productindex
|
|
|
//indexFieldBuilder.init()
|
|
|
indexFieldBuilderList.stream().forEach(indexFieldBuilder -> indexFieldBuilder.init());
|
|
|
}
|
|
|
|
...
|
...
|
|