...
|
...
|
@@ -9,8 +9,8 @@ import com.yoho.search.recall.scene.models.RecallRequest; |
|
|
import com.yoho.search.recall.scene.models.RecallResponseBatch;
|
|
|
import com.yoho.search.recall.scene.models.RecallSknParams;
|
|
|
import com.yoho.search.recall.scene.models.RecallSknList;
|
|
|
import com.yoho.search.recall.scene.persional.PersionalFactor;
|
|
|
import com.yoho.search.recall.scene.persional.RecallPersionalService;
|
|
|
import com.yoho.search.recall.scene.models.PersionalFactor;
|
|
|
import com.yoho.search.recall.scene.persional.PersionalFactorService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
...
|
...
|
@@ -23,7 +23,7 @@ import java.util.Map; |
|
|
public class CacheRecallSknParamsRecallSknListBean extends AbstractCacheRequestResponseComponent<RecallSknParams,RecallSknList,CacheRecallSknParamsRecallSknList> {
|
|
|
|
|
|
@Autowired
|
|
|
private RecallPersionalService recallPersionalService;
|
|
|
private PersionalFactorService persionalFactorService;
|
|
|
@Autowired
|
|
|
private CacheRecallRequestRecallResponseBean cacheRecallRequestResponseBean;
|
|
|
@Autowired
|
...
|
...
|
@@ -74,7 +74,7 @@ public class CacheRecallSknParamsRecallSknListBean extends AbstractCacheRequestR |
|
|
*/
|
|
|
private RecallSknList doRealRecall(RecallSknParams param) {
|
|
|
//1、获取个性化因子
|
|
|
PersionalFactor persionalFactor = recallPersionalService.queryPersionalFactor(param);
|
|
|
PersionalFactor persionalFactor = persionalFactorService.queryPersionalFactor(param);
|
|
|
//2、构造请求
|
|
|
List<RecallRequest> batchRequests = this.buildBatchRequests(param, persionalFactor);
|
|
|
//3、批量召回
|
...
|
...
|
|