Authored by hugufei

解决促销列表的召回类型问题

... ... @@ -15,6 +15,7 @@ import com.yoho.search.recall.scene.models.req.UserRecallRequest;
import com.yoho.search.service.base.SearchCacheService;
import com.yoho.search.service.base.SearchCommonService;
import com.yoho.search.service.base.SearchDynamicConfigService;
import com.yoho.search.service.base.index.ProductIndexBaseService;
import com.yoho.search.service.helper.ProductListHelper;
import com.yoho.search.service.helper.SearchCommonHelper;
import com.yoho.search.service.helper.SearchParamHelper;
... ... @@ -50,6 +51,8 @@ public class PromotionProductListService extends AbstractCacheAbleService {
private SceneRecallProductListService sceneRecallProductListService;
@Autowired
private SearchDynamicConfigService searchDynamicConfigService;
@Autowired
private ProductIndexBaseService productIndexBaseService;
@Override
public SearchCache getSearchCache() {
... ... @@ -121,6 +124,7 @@ public class PromotionProductListService extends AbstractCacheAbleService {
//4、设置排序字段
searchParam.setSortBuilders(searchSortHelper.buildSortList(paramMap));
searchParam.setIncludeFields(productIndexBaseService.getProductIndexIncludeFields());
// 5)从缓存中获取数据
final String productIndexName = ISearchConstants.INDEX_NAME_PRODUCT_INDEX;
... ... @@ -144,4 +148,5 @@ public class PromotionProductListService extends AbstractCacheAbleService {
return new SearchApiResult().setData(productListResult);
}
}
... ...