|
|
package com.yoho.search.recall.scene.beans.cache;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.yoho.search.recall.scene.beans.builder.*;
|
|
|
import com.yoho.search.recall.scene.beans.persional.QueryUserPersionalFactorBean;
|
|
|
import com.yoho.search.recall.scene.models.common.RecallMergerResult;
|
...
|
...
|
@@ -80,6 +81,19 @@ public class UserRecallRequestResponseCacheBean extends AbstractCacheBean<UserRe |
|
|
begin = System.currentTimeMillis();
|
|
|
List<RecallRequestResponse> requestResponses = recallRequestResponseCacheBean.batchRecallAndCache(batchRequests);
|
|
|
RECALL_NEW_LOGGER.info("UserRecallRequestResponseCacheBean[2]-batchRecallAndCache,cost is [{}]", System.currentTimeMillis()-begin);
|
|
|
if(param.getUid()==13420925){
|
|
|
for(RecallRequestResponse recallRequestResponse: requestResponses){
|
|
|
StringBuilder responseLog = new StringBuilder();
|
|
|
RecallResponse recallResponse = recallRequestResponse.getResponse();
|
|
|
if(recallResponse==null){
|
|
|
responseLog.append("null");
|
|
|
}else{
|
|
|
responseLog.append("total is [").append(recallResponse.getTotal()).append("], ");
|
|
|
responseLog.append("sknList is ").append(recallResponse.getSkns()==null?"[]", JSON.toJSONString(recallResponse.getSkns()));
|
|
|
}
|
|
|
RECALL_NEW_LOGGER.info("request_type is [{}], response is [{}] ", recallRequestResponse.getRequest().requestStrategy().name(),responseLog);
|
|
|
}
|
|
|
}
|
|
|
//4、获取skn列表[去重]
|
|
|
RecallMergerResult recallMergerResult = recallMergerResultBuilder.buildRecallMergerResult(requestResponses);
|
|
|
//5、构造真实结果[排序,截取skn]
|
...
|
...
|
|