Authored by hugufei

拆包

Showing 47 changed files with 114 additions and 99 deletions
... ... @@ -12,7 +12,7 @@ import com.yoho.search.models.SearchApiResult;
import com.yoho.search.service.recall.beans.builder.UserRecallRequestBuilder;
import com.yoho.search.service.base.SknReturnInfoBaseService;
import com.yoho.search.service.recall.beans.cache.UserRecallCacheBean;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import com.yoho.search.service.recall.models.common.RecallSknInfo;
import com.yoho.search.service.recall.models.req.UserRecallRequest;
import com.yoho.search.service.recall.models.req.UserRecallResponse;
... ...
... ... @@ -8,7 +8,7 @@ import com.yoho.search.core.es.model.SearchResult;
import com.yoho.search.service.index.*;
import com.yoho.search.service.index.promotion.PromotionIndexBaseService;
import com.yoho.search.service.index.promotion.PromotionPriceService;
import com.yoho.search.service.recall.beans.strategy.NotRecallTypeEnum;
import com.yoho.search.service.recall.strategy.NotRecallTypeEnum;
import org.apache.commons.collections.MapUtils;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
... ...
... ... @@ -13,7 +13,7 @@ import com.yoho.search.service.recall.beans.builder.UserRecallRequestBuilder;
import com.yoho.search.service.base.SknReturnInfoBaseService;
import com.yoho.search.service.recall.beans.cache.UserRecallCacheBean;
import com.yoho.search.service.recall.helper.SortBuilderHelper;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import com.yoho.search.service.recall.models.req.UserRecallRequest;
import com.yoho.search.service.recall.models.req.UserRecallResponse;
import com.yoho.search.service.recall.models.common.RecallSknInfo;
... ...
package com.yoho.search.service.recall.beans.builder;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.beans.strategy.impls.*;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import com.yoho.search.service.recall.config.RecallConfigService;
import com.yoho.search.service.recall.models.req.RecallRequest;
import com.yoho.search.service.recall.models.req.UserRecallRequest;
import com.yoho.search.service.recall.strategy.impls.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
... ...
package com.yoho.search.service.recall.beans.builder;
import com.yoho.search.service.recall.helper.StrategyHelper;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import com.yoho.search.service.recall.models.common.RecallMergerResult;
import com.yoho.search.service.recall.models.req.RecallRequest;
import com.yoho.search.service.recall.models.req.RecallRequestResponse;
... ...
package com.yoho.search.service.recall.beans.builder;
import com.yoho.search.core.personalized.models.SortBrand;
import com.yoho.search.service.recall.beans.strategy.IStrategy;
import com.yoho.search.service.recall.beans.strategy.SortBrandType;
import com.yoho.search.service.recall.beans.strategy.impls.*;
import com.yoho.search.service.recall.strategy.IStrategy;
import com.yoho.search.service.recall.strategy.SortBrandType;
import com.yoho.search.service.recall.config.RecallConfigService;
import com.yoho.search.service.recall.config.ConfigSknCount;
import com.yoho.search.service.recall.models.common.ParamQueryFilter;
import com.yoho.search.service.recall.models.req.RecallRequest;
import com.yoho.search.service.recall.models.req.UserRecallRequest;
import com.yoho.search.service.recall.strategy.impls.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
... ...
... ... @@ -10,7 +10,7 @@ import com.yoho.search.service.recall.config.RecallConfigService;
import com.yoho.search.service.recall.models.personal.UserFeatureFactor;
import com.yoho.search.service.base.SknBaseInfoBaseService;
import com.yoho.search.service.recall.helper.StrategyHelper;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import com.yoho.search.service.recall.models.common.RecallMergerResult;
import com.yoho.search.service.recall.models.common.RecallSknInfo;
import com.yoho.search.service.recall.models.personal.UserPersonalFactor;
... ...
... ... @@ -14,11 +14,11 @@ import com.yoho.search.core.es.model.SearchResult;
import com.yoho.search.service.base.ProductSknCodeBaseService;
import com.yoho.search.service.recall.helper.StrategyHelper;
import com.yoho.search.service.recall.beans.persional.PageSknCodeBitSetComponent;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.beans.strategy.impls.IRecallSknStrategy;
import com.yoho.search.service.recall.beans.strategy.impls.RealTimeSimilarSknStrategy;
import com.yoho.search.service.recall.beans.strategy.impls.RealTimeYoutuboSknStrategy;
import com.yoho.search.service.recall.beans.strategy.impls.RecommendSknStrategy;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.impls.IRecallSknStrategy;
import com.yoho.search.service.recall.strategy.impls.RealTimeSimilarSknStrategy;
import com.yoho.search.service.recall.strategy.impls.RealTimeYoutuboSknStrategy;
import com.yoho.search.service.recall.strategy.impls.RecommendSknStrategy;
import com.yoho.search.service.recall.config.RecallConfigService;
import com.yoho.search.service.recall.models.common.ParamQueryFilter;
import com.yoho.search.service.recall.models.personal.PageSknCodeBitSet;
... ...
... ... @@ -6,7 +6,7 @@ import com.yoho.search.service.recall.beans.builder.RecallMergerResultBuilder;
import com.yoho.search.service.recall.beans.builder.SortBrandRecallRequestBuilder;
import com.yoho.search.service.recall.beans.builder.UserRecallResponseBuilder;
import com.yoho.search.service.recall.beans.persional.QueryUserPersionalFactorBean;
import com.yoho.search.service.recall.beans.strategy.SortBrandType;
import com.yoho.search.service.recall.strategy.SortBrandType;
import com.yoho.search.service.recall.models.common.RecallMergerResult;
import com.yoho.search.service.recall.models.personal.UserPersonalFactor;
import com.yoho.search.service.recall.models.req.*;
... ...
... ... @@ -3,7 +3,7 @@ package com.yoho.search.service.recall.beans.persional;
import com.yoho.search.core.personalized.models.SortBrand;
import com.yoho.search.core.personalized.models.SortPriceAreas;
import com.yoho.search.core.personalized.models.UserPersonalFactorRsp;
import com.yoho.search.service.recall.beans.strategy.SortBrandType;
import com.yoho.search.service.recall.strategy.SortBrandType;
import com.yoho.search.service.recall.beans.vector.SortBrandVectorComponent;
import com.yoho.search.service.recall.config.RecallConfigService;
import com.yoho.search.service.recall.models.personal.PagePersonalFactor;
... ...
... ... @@ -8,6 +8,11 @@ public class RecallConfigConstants {
public static final String DIRECT_TRAIN = "DIRECT_TRAIN";
public static final String DIRECT_TRAIN_UFO = "DIRECT_TRAIN_UFO";
public static final String DIRECT_TRAIN_SKN_POOL = "DIRECT_TRAIN_SKN_POOL";
public static final String DIRECT_TRAIN_BRAND = "DIRECT_TRAIN_BRAND";
public static final String DIRECT_TRAIN_SORT_PRICE = "DIRECT_TRAIN_SORT_PRICE";
public static final String NEW_PRODUCT = "NEW_PRODUCT";
public static final String REC_SKN = "REC_SKN";
public static final String RT_SIM_SKN = "RT_SIM_SKN";
public static final String RT_YOUTUBE_SKN = "RT_YOUTUBE_SKN";
... ...
... ... @@ -3,8 +3,8 @@ package com.yoho.search.service.recall.config;
import com.alibaba.fastjson.JSON;
import com.yoho.search.core.personalized.models.SortBrand;
import com.yoho.search.service.recall.helper.StrategyHelper;
import com.yoho.search.service.recall.beans.strategy.SortBrandType;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.SortBrandType;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import com.yoho.search.service.recall.models.personal.PagePersonalFactor;
import com.yoho.search.service.recall.models.req.UserRecallRequest;
import org.slf4j.Logger;
... ...
package com.yoho.search.service.recall.helper;
import com.yoho.search.service.recall.beans.strategy.SortBrandType;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.beans.strategy.impls.IRecallSknStrategy;
import com.yoho.search.service.recall.beans.strategy.impls.RealTimeSimilarSknStrategy;
import com.yoho.search.service.recall.beans.strategy.impls.RealTimeYoutuboSknStrategy;
import com.yoho.search.service.recall.beans.strategy.impls.RecommendSknStrategy;
import com.yoho.search.service.recall.config.RecallConfigConstants;
import com.yoho.search.service.recall.strategy.SortBrandType;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.impls.IRecallSknStrategy;
import com.yoho.search.service.recall.strategy.impls.RealTimeSimilarSknStrategy;
import com.yoho.search.service.recall.strategy.impls.RealTimeYoutuboSknStrategy;
import com.yoho.search.service.recall.strategy.impls.RecommendSknStrategy;
import java.util.Arrays;
import java.util.List;
... ... @@ -81,6 +81,18 @@ public class StrategyHelper {
if (strategyEnum.equals(StrategyEnum.ADD_FLOW)) {
return RecallConfigConstants.ADD_FLOW;
}
if (strategyEnum.equals(StrategyEnum.NEW_PRODUCT)) {
return RecallConfigConstants.NEW_PRODUCT;
}
if (strategyEnum.equals(StrategyEnum.DIRECT_TRAIN_BRAND)) {
return RecallConfigConstants.DIRECT_TRAIN_BRAND;
}
if (strategyEnum.equals(StrategyEnum.DIRECT_TRAIN_SORT_PRICE)) {
return RecallConfigConstants.DIRECT_TRAIN_SORT_PRICE;
}
if (strategyEnum.equals(StrategyEnum.DIRECT_TRAIN_SKN_POOL)) {
return RecallConfigConstants.DIRECT_TRAIN_SKN_POOL;
}
return null;
}
... ...
... ... @@ -3,7 +3,7 @@ package com.yoho.search.service.recall.models.common;
import com.yoho.search.base.utils.ProductIndexEsField;
import com.yoho.search.core.es.model.SearchParam;
import com.yoho.search.service.recall.beans.strategy.IStrategy;
import com.yoho.search.service.recall.strategy.IStrategy;
import java.util.Arrays;
import java.util.List;
... ...
package com.yoho.search.service.recall.models.common;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import com.yoho.search.service.recall.models.req.SknBaseInfoResponse;
import java.util.List;
... ...
... ... @@ -3,8 +3,8 @@ package com.yoho.search.service.recall.models.req;
import com.yoho.core.redis.cluster.operations.serializer.RedisKeyBuilder;
import com.yoho.search.base.utils.MD5Util;
import com.yoho.search.core.es.model.SearchParam;
import com.yoho.search.service.recall.beans.strategy.IStrategy;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.IStrategy;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import com.yoho.search.cache.model.ICacheRequest;
import com.yoho.search.service.recall.models.common.IRecallRequest;
import com.yoho.search.service.recall.models.common.ParamQueryFilter;
... ...
package com.yoho.search.service.recall.beans.strategy;
package com.yoho.search.service.recall.strategy;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.search.sort.SortBuilder;
... ...
package com.yoho.search.service.recall.beans.strategy;
package com.yoho.search.service.recall.strategy;
public enum NotRecallTypeEnum {
W2V_PERSIONAL,
... ...
package com.yoho.search.service.recall.beans.strategy;
package com.yoho.search.service.recall.strategy;
/**
* 品牌品类类型,字段不能该,取召回数量的时后要用到
... ...
package com.yoho.search.service.recall.beans.strategy;
package com.yoho.search.service.recall.strategy;
public enum StrategyEnum {
... ...
package com.yoho.search.service.recall.beans.strategy.impls;
package com.yoho.search.service.recall.strategy.impls;
import com.yoho.search.cache.CacheTimeConstants;
import com.yoho.search.service.recall.helper.ExtendFilterHelper;
import com.yoho.search.service.recall.helper.SortBuilderHelper;
import com.yoho.search.service.recall.beans.strategy.IStrategy;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.IStrategy;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.search.sort.SortBuilder;
... ...
package com.yoho.search.service.recall.beans.strategy.impls;
package com.yoho.search.service.recall.strategy.impls;
import com.yoho.search.service.recall.helper.SortBuilderHelper;
import com.yoho.search.service.recall.beans.strategy.IStrategy;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.IStrategy;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import com.yoho.search.cache.CacheTimeConstants;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.search.sort.SortBuilder;
... ...
package com.yoho.search.service.recall.beans.strategy.impls;
package com.yoho.search.service.recall.strategy.impls;
import com.yoho.search.cache.CacheTimeConstants;
import com.yoho.search.service.recall.helper.ExtendFilterHelper;
import com.yoho.search.service.recall.helper.SortBuilderHelper;
import com.yoho.search.service.recall.beans.strategy.IStrategy;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.IStrategy;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.search.sort.SortBuilder;
... ...
package com.yoho.search.service.recall.beans.strategy.impls;
package com.yoho.search.service.recall.strategy.impls;
import com.yoho.search.cache.CacheTimeConstants;
import com.yoho.search.service.recall.helper.ExtendFilterHelper;
import com.yoho.search.service.recall.helper.SortBuilderHelper;
import com.yoho.search.service.recall.beans.strategy.IStrategy;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.IStrategy;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.search.sort.SortBuilder;
... ...
package com.yoho.search.service.recall.beans.strategy.impls;
package com.yoho.search.service.recall.strategy.impls;
import com.alibaba.fastjson.JSON;
import com.yoho.search.cache.CacheTimeConstants;
import com.yoho.search.service.recall.helper.ExtendFilterHelper;
import com.yoho.search.service.recall.helper.SortBuilderHelper;
import com.yoho.search.service.recall.beans.strategy.IStrategy;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.IStrategy;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.search.sort.SortBuilder;
... ...
package com.yoho.search.service.recall.beans.strategy.impls;
package com.yoho.search.service.recall.strategy.impls;
import com.yoho.search.service.recall.helper.SortBuilderHelper;
import com.yoho.search.service.recall.beans.strategy.IStrategy;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.IStrategy;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import com.yoho.search.cache.CacheTimeConstants;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.search.sort.SortBuilder;
... ...
package com.yoho.search.service.recall.beans.strategy.impls;
package com.yoho.search.service.recall.strategy.impls;
import com.yoho.search.cache.CacheTimeConstants;
import com.yoho.search.service.recall.helper.ExtendFilterHelper;
import com.yoho.search.service.recall.helper.SortBuilderHelper;
import com.yoho.search.service.recall.beans.strategy.IStrategy;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.IStrategy;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.search.sort.SortBuilder;
... ...
package com.yoho.search.service.recall.beans.strategy.impls;
package com.yoho.search.service.recall.strategy.impls;
import com.yoho.search.service.recall.helper.ExtendFilterHelper;
import com.yoho.search.service.recall.helper.SortBuilderHelper;
import com.yoho.search.service.recall.beans.strategy.IStrategy;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.IStrategy;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import com.yoho.search.cache.CacheTimeConstants;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.search.sort.SortBuilder;
... ...
package com.yoho.search.service.recall.beans.strategy.impls;
package com.yoho.search.service.recall.strategy.impls;
import com.yoho.search.cache.CacheTimeConstants;
import com.yoho.search.service.recall.helper.ExtendFilterHelper;
import com.yoho.search.service.recall.helper.SortBuilderHelper;
import com.yoho.search.service.recall.beans.strategy.IStrategy;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.IStrategy;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.search.sort.SortBuilder;
... ...
package com.yoho.search.service.recall.beans.strategy.impls;
package com.yoho.search.service.recall.strategy.impls;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.StrategyEnum;
/**
* 推荐skn的召回策略
... ...
package com.yoho.search.service.recall.beans.strategy.impls;
package com.yoho.search.service.recall.strategy.impls;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.StrategyEnum;
public class RealTimeYoutuboSknStrategy extends IRecallSknStrategy {
... ...
package com.yoho.search.service.recall.beans.strategy.impls;
package com.yoho.search.service.recall.strategy.impls;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.StrategyEnum;
/**
* 推荐skn的召回策略
... ...
package com.yoho.search.service.recall.beans.strategy.impls;
package com.yoho.search.service.recall.strategy.impls;
import com.alibaba.fastjson.JSON;
import com.yoho.search.core.personalized.models.SortBrand;
import com.yoho.search.service.recall.beans.strategy.IStrategy;
import com.yoho.search.service.recall.beans.strategy.SortBrandType;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.IStrategy;
import com.yoho.search.service.recall.strategy.SortBrandType;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import com.yoho.search.cache.CacheTimeConstants;
public abstract class SortBrandAbstractStrategy implements IStrategy {
... ...
package com.yoho.search.service.recall.beans.strategy.impls;
package com.yoho.search.service.recall.strategy.impls;
import com.yoho.search.core.personalized.models.SortBrand;
import com.yoho.search.service.recall.helper.ExtendFilterHelper;
import com.yoho.search.service.recall.helper.SortBuilderHelper;
import com.yoho.search.service.recall.beans.strategy.SortBrandType;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.SortBrandType;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.search.sort.SortBuilder;
... ...
package com.yoho.search.service.recall.beans.strategy.impls;
package com.yoho.search.service.recall.strategy.impls;
import com.yoho.search.core.personalized.models.SortBrand;
import com.yoho.search.service.recall.helper.ExtendFilterHelper;
import com.yoho.search.service.recall.helper.SortBuilderHelper;
import com.yoho.search.service.recall.beans.strategy.SortBrandType;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.SortBrandType;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.search.sort.SortBuilder;
... ...
package com.yoho.search.service.recall.beans.strategy.impls;
package com.yoho.search.service.recall.strategy.impls;
import com.yoho.search.core.personalized.models.SortBrand;
import com.yoho.search.service.recall.helper.ExtendFilterHelper;
import com.yoho.search.service.recall.helper.SortBuilderHelper;
import com.yoho.search.service.recall.beans.strategy.SortBrandType;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.SortBrandType;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.search.sort.SortBuilder;
... ...
package com.yoho.search.service.recall.beans.strategy.impls;
package com.yoho.search.service.recall.strategy.impls;
import com.yoho.search.core.personalized.models.SortBrand;
import com.yoho.search.service.recall.helper.ExtendFilterHelper;
import com.yoho.search.service.recall.helper.SortBuilderHelper;
import com.yoho.search.service.recall.beans.strategy.SortBrandType;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.SortBrandType;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.search.sort.SortBuilder;
... ...
package com.yoho.search.service.recall.beans.strategy.impls;
package com.yoho.search.service.recall.strategy.impls;
import com.yoho.search.core.personalized.models.SortBrand;
import com.yoho.search.service.recall.helper.ExtendFilterHelper;
import com.yoho.search.service.recall.helper.SortBuilderHelper;
import com.yoho.search.service.recall.beans.strategy.SortBrandType;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.SortBrandType;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.search.sort.SortBuilder;
... ...
package com.yoho.search.service.recall.beans.strategy.impls;
package com.yoho.search.service.recall.strategy.impls;
import com.yoho.search.core.personalized.models.SortBrand;
import com.yoho.search.service.recall.helper.ExtendFilterHelper;
import com.yoho.search.service.recall.helper.SortBuilderHelper;
import com.yoho.search.service.recall.beans.strategy.SortBrandType;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.SortBrandType;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.search.sort.SortBuilder;
... ...
... ... @@ -12,7 +12,7 @@ import com.yoho.search.models.SearchApiResult;
import com.yoho.search.service.helper.ProductListHelper;
import com.yoho.search.service.helper.SearchParamHelper;
import com.yoho.search.service.index.ProductIndexBaseService;
import com.yoho.search.service.recall.beans.strategy.NotRecallTypeEnum;
import com.yoho.search.service.recall.strategy.NotRecallTypeEnum;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
... ...
... ... @@ -18,7 +18,7 @@ import com.yoho.search.service.helper.AggCommonHelper;
import com.yoho.search.service.helper.ProductListHelper;
import com.yoho.search.service.helper.SearchParamHelper;
import com.yoho.search.service.helper.SearchQueryHelper;
import com.yoho.search.service.recall.beans.strategy.NotRecallTypeEnum;
import com.yoho.search.service.recall.strategy.NotRecallTypeEnum;
import org.apache.commons.lang3.StringUtils;
import org.elasticsearch.index.query.BoolQueryBuilder;
import org.elasticsearch.index.query.QueryBuilder;
... ...
... ... @@ -9,7 +9,7 @@ import com.yoho.search.core.es.model.SearchParam;
import com.yoho.search.core.es.model.SearchResult;
import com.yoho.search.models.SearchApiResult;
import com.yoho.search.service.helper.ProductListHelper;
import com.yoho.search.service.recall.beans.strategy.NotRecallTypeEnum;
import com.yoho.search.service.recall.strategy.NotRecallTypeEnum;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
... ...
package com.yoho.search.service.scene.pages.entrance;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.cache.CacheType;
import com.yoho.search.aop.cache.SearchCacheAble;
import com.yoho.search.aop.productlist.ProductListWithSknRetention;
import com.yoho.search.core.es.model.SearchParam;
import com.yoho.search.core.es.model.SearchResult;
import com.yoho.search.aop.productlist.ProductListWithSkn;
import com.yoho.search.models.SearchApiResult;
import com.yoho.search.service.recall.beans.strategy.NotRecallTypeEnum;
import com.yoho.search.service.recall.strategy.NotRecallTypeEnum;
import com.yoho.search.common.SearchCommonService;
import com.yoho.search.service.helper.ProductListHelper;
import org.slf4j.Logger;
... ...
... ... @@ -2,14 +2,13 @@ package com.yoho.search.service.scene.pages.entrance;
import com.yoho.search.base.utils.ISearchConstants;
import com.yoho.search.base.utils.SearchPageIdDefine;
import com.yoho.search.cache.CacheType;
import com.yoho.search.aop.cache.SearchCacheAble;
import com.yoho.search.aop.productlist.ProductListWithSknRetention;
import com.yoho.search.core.es.model.SearchParam;
import com.yoho.search.core.es.model.SearchResult;
import com.yoho.search.aop.productlist.ProductListWithSkn;
import com.yoho.search.models.SearchApiResult;
import com.yoho.search.service.recall.beans.strategy.NotRecallTypeEnum;
import com.yoho.search.service.recall.strategy.NotRecallTypeEnum;
import com.yoho.search.common.SearchCommonService;
import com.yoho.search.common.SearchRequestParams;
import com.yoho.search.service.helper.ProductListHelper;
... ...
... ... @@ -17,7 +17,7 @@ import com.yoho.search.service.helper.SearchSortHelper;
import com.yoho.search.service.index.ProductIndexBaseService;
import com.yoho.search.service.recall.SceneRecallProductListService;
import com.yoho.search.service.recall.beans.builder.UserRecallRequestBuilder;
import com.yoho.search.service.recall.beans.strategy.NotRecallTypeEnum;
import com.yoho.search.service.recall.strategy.NotRecallTypeEnum;
import com.yoho.search.service.recall.models.req.UserRecallRequest;
import org.apache.commons.lang.StringUtils;
import org.elasticsearch.common.Nullable;
... ...
... ... @@ -8,7 +8,7 @@ import com.yoho.search.core.personalized.models.SortBrand;
import com.yoho.search.core.personalized.models.UserPersonalFactorRsp;
import com.yoho.search.service.recall.beans.persional.ProductFeatureFactorComponent;
import com.yoho.search.service.recall.beans.persional.UserPersionalFactorComponent;
import com.yoho.search.service.recall.beans.strategy.IStrategy;
import com.yoho.search.service.recall.strategy.IStrategy;
import com.yoho.search.service.recall.beans.vector.BrandVectorCacheBean;
import com.yoho.search.service.recall.models.common.ParamQueryFilter;
import com.yoho.search.service.recall.models.personal.BrandVectorScore;
... ...
... ... @@ -2,8 +2,8 @@ package com.yoho.search.service.scene.recommend.activity;
import com.yoho.search.base.utils.ProductIndexEsField;
import com.yoho.search.cache.CacheTimeConstants;
import com.yoho.search.service.recall.beans.strategy.StrategyEnum;
import com.yoho.search.service.recall.beans.strategy.impls.CommonHeatValueStrategy;
import com.yoho.search.service.recall.strategy.StrategyEnum;
import com.yoho.search.service.recall.strategy.impls.CommonHeatValueStrategy;
import org.elasticsearch.index.query.BoolQueryBuilder;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.index.query.QueryBuilders;
... ...