Showing
1 changed file
with
5 additions
and
0 deletions
@@ -15,6 +15,7 @@ import com.yoho.search.recall.scene.models.req.UserRecallRequest; | @@ -15,6 +15,7 @@ import com.yoho.search.recall.scene.models.req.UserRecallRequest; | ||
15 | import com.yoho.search.service.base.SearchCacheService; | 15 | import com.yoho.search.service.base.SearchCacheService; |
16 | import com.yoho.search.service.base.SearchCommonService; | 16 | import com.yoho.search.service.base.SearchCommonService; |
17 | import com.yoho.search.service.base.SearchDynamicConfigService; | 17 | import com.yoho.search.service.base.SearchDynamicConfigService; |
18 | +import com.yoho.search.service.base.index.ProductIndexBaseService; | ||
18 | import com.yoho.search.service.helper.ProductListHelper; | 19 | import com.yoho.search.service.helper.ProductListHelper; |
19 | import com.yoho.search.service.helper.SearchCommonHelper; | 20 | import com.yoho.search.service.helper.SearchCommonHelper; |
20 | import com.yoho.search.service.helper.SearchParamHelper; | 21 | import com.yoho.search.service.helper.SearchParamHelper; |
@@ -50,6 +51,8 @@ public class PromotionProductListService extends AbstractCacheAbleService { | @@ -50,6 +51,8 @@ public class PromotionProductListService extends AbstractCacheAbleService { | ||
50 | private SceneRecallProductListService sceneRecallProductListService; | 51 | private SceneRecallProductListService sceneRecallProductListService; |
51 | @Autowired | 52 | @Autowired |
52 | private SearchDynamicConfigService searchDynamicConfigService; | 53 | private SearchDynamicConfigService searchDynamicConfigService; |
54 | + @Autowired | ||
55 | + private ProductIndexBaseService productIndexBaseService; | ||
53 | 56 | ||
54 | @Override | 57 | @Override |
55 | public SearchCache getSearchCache() { | 58 | public SearchCache getSearchCache() { |
@@ -121,6 +124,7 @@ public class PromotionProductListService extends AbstractCacheAbleService { | @@ -121,6 +124,7 @@ public class PromotionProductListService extends AbstractCacheAbleService { | ||
121 | 124 | ||
122 | //4、设置排序字段 | 125 | //4、设置排序字段 |
123 | searchParam.setSortBuilders(searchSortHelper.buildSortList(paramMap)); | 126 | searchParam.setSortBuilders(searchSortHelper.buildSortList(paramMap)); |
127 | + searchParam.setIncludeFields(productIndexBaseService.getProductIndexIncludeFields()); | ||
124 | 128 | ||
125 | // 5)从缓存中获取数据 | 129 | // 5)从缓存中获取数据 |
126 | final String productIndexName = ISearchConstants.INDEX_NAME_PRODUCT_INDEX; | 130 | final String productIndexName = ISearchConstants.INDEX_NAME_PRODUCT_INDEX; |
@@ -144,4 +148,5 @@ public class PromotionProductListService extends AbstractCacheAbleService { | @@ -144,4 +148,5 @@ public class PromotionProductListService extends AbstractCacheAbleService { | ||
144 | return new SearchApiResult().setData(productListResult); | 148 | return new SearchApiResult().setData(productListResult); |
145 | } | 149 | } |
146 | 150 | ||
151 | + | ||
147 | } | 152 | } |
-
Please register or login to post a comment