Authored by hugufei

名称修改

... ... @@ -87,7 +87,7 @@ public class FuzzySceneService extends AbstractSceneService {
// 4、获取自定义标签聚合结果
CompletableFuture<SearchApiResult> customizeTagFuture = CompletableFuture.supplyAsync(() -> sceneAggregationsHelper.sceneAggCustomizeTag(this.newParamMap(paramMap)), executor);
// 5、获取促销专题
CompletableFuture<SearchApiResult> promotionsFuture = CompletableFuture.supplyAsync(() -> sceneAggregationsHelper.sceneAggRecommendPromotion(this.newParamMap(paramMap)),
CompletableFuture<SearchApiResult> promotionsFuture = CompletableFuture.supplyAsync(() -> sceneAggregationsHelper.sceneAggPromotion(this.newParamMap(paramMap)),
executor);
// 6、加入建议词
... ...
... ... @@ -100,7 +100,7 @@ public class SortSceneService extends AbstractSceneService {
// 3、获取聚合结果
CompletableFuture<SearchApiResult> standardsFuture = CompletableFuture.supplyAsync(() -> sceneAggregationsHelper.sceneAggStandard(this.newParamMap(paramMap)), executorService);
CompletableFuture<SearchApiResult> customizeTagFuture = CompletableFuture.supplyAsync(() -> sceneAggregationsHelper.sceneAggCustomizeTag(this.newParamMap(paramMap)),executorService);
CompletableFuture<SearchApiResult> promotionsFuture = CompletableFuture.supplyAsync(() -> sceneAggregationsHelper.sceneAggRecommendPromotion(this.newParamMap(paramMap)),executorService);
CompletableFuture<SearchApiResult> promotionsFuture = CompletableFuture.supplyAsync(() -> sceneAggregationsHelper.sceneAggPromotion(this.newParamMap(paramMap)),executorService);
// 4、组合结果
SearchApiResult productList = productListFuture.get();
SearchApiResult standards = standardsFuture.get();
... ...
... ... @@ -97,8 +97,8 @@ public class SceneAggregationsHelper {
* @param paramMap
* @return
*/
@SearchCacheAble(cacheName = "SCENE_AGG_RECOMMENDPROMOTION", cacheInMinute = 30, excludeParams = { "uid", "order", "page", "viewNum", "yh_channel" })
public SearchApiResult sceneAggRecommendPromotion(Map<String, String> paramMap) {
@SearchCacheAble(cacheName = "SCENE_AGG_PROMOTION", cacheInMinute = 30, excludeParams = { "uid", "order", "page", "viewNum", "yh_channel" })
public SearchApiResult sceneAggPromotion(Map<String, String> paramMap) {
try {
// 1、获取aggregation
IAggregation aggregation = aggregationFactoryService.getRecommendPromotionAggregation(50);
... ... @@ -191,8 +191,8 @@ public class SceneAggregationsHelper {
* @param paramMap
* @return
*/
@SearchCacheAble(cacheName = "SCENE_AGG_RECOMMEND_BRAND", cacheInMinute = 30, excludeParams = { "order", "page", "viewNum", "yh_channel" })
public SearchApiResult sceneAggRecommendBrand(Map<String, String> paramMap) {
@SearchCacheAble(cacheName = "SCENE_RECOMMEND_BRAND", cacheInMinute = 30, excludeParams = { "order", "page", "viewNum", "yh_channel" })
public SearchApiResult sceneRecommendBrand(Map<String, String> paramMap) {
try {
// 1、获取核心参数
SearchParam searchParam = searchParamHelper.buildWithPersional(paramMap, true);
... ...