Authored by unknown

品类页召回机测试

package com.yoho.search.restapi.tools;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.apache.lucene.search.join.ScoreMode;
... ...
... ... @@ -20,6 +20,7 @@ import com.yoho.search.service.helper.SearchCommonHelper;
import com.yoho.search.service.scene.common.AbstractSceneService;
import com.yoho.search.service.scene.common.SceneProductListService;
import com.yoho.search.service.scene.common.SceneSelectionsService;
import com.yoho.search.service.scene.recall.SortRecallSceneService;
import com.yoho.search.service.service.IAggRecommendService;
import com.yoho.search.service.service.IProductIndexService;
... ... @@ -38,6 +39,8 @@ public class SortSceneService extends AbstractSceneService {
private IProductIndexService productIndexService;
@Autowired
private IAggRecommendService aggRecommendService;
@Autowired
private SortRecallSceneService sortRecallSceneService;
@Override
public String pageId() {
... ... @@ -87,7 +90,7 @@ public class SortSceneService extends AbstractSceneService {
if(!"13420925".equals(this.getuid(paramMap))){
productListFuture = CompletableFuture.supplyAsync(() -> sceneProductListService.productList(this.newParamMap(paramMap)),executorService);
}else{
productListFuture = CompletableFuture.supplyAsync(() -> sceneProductListService.productList(this.newParamMap(paramMap)),executorService);
productListFuture = CompletableFuture.supplyAsync(() -> sortRecallSceneService.productList(this.newParamMap(paramMap)),executorService);
}
// 3、获取聚合结果
CompletableFuture<SearchApiResult> standardsFuture = CompletableFuture.supplyAsync(() -> productIndexService.aggStandard(this.newParamMap(paramMap)),executorService);
... ...
... ... @@ -114,7 +114,7 @@ public class SortRecallSceneService extends AbstractRecallService {
* @return
* @throws Exception
*/
public SearchApiResult callSortProductList(Map<String, String> paramMap) throws Exception {
public SearchApiResult productList(Map<String, String> paramMap){
try {
// 1)验证查询条数
int page = this.getPage(paramMap);
... ...