Showing
1 changed file
with
5 additions
and
5 deletions
@@ -199,11 +199,11 @@ public class SearchProductsServiceNew { | @@ -199,11 +199,11 @@ public class SearchProductsServiceNew { | ||
199 | @SuppressWarnings("unchecked") | 199 | @SuppressWarnings("unchecked") |
200 | private Map<String, Object> buildFilterResult(Map<String, Object> aggregationResult, Map<String, String> paramMap) throws Exception { | 200 | private Map<String, Object> buildFilterResult(Map<String, Object> aggregationResult, Map<String, String> paramMap) throws Exception { |
201 | Map<String, Object> filter = new HashMap<String, Object>(); | 201 | Map<String, Object> filter = new HashMap<String, Object>(); |
202 | -// // 1)获取年龄的聚合结果 | ||
203 | -// Object ageLevelAgg = aggregationResult.get("ageLevelAgg"); | ||
204 | -// if (ageLevelAgg != null) { | ||
205 | -// filter.put("ageLevel", ageLevelAgg); | ||
206 | -// } | 202 | + // 1)获取年龄的聚合结果 |
203 | + Object ageLevelAgg = aggregationResult.get("ageLevelAgg"); | ||
204 | + if (ageLevelAgg != null) { | ||
205 | + filter.put("ageLevel", ageLevelAgg); | ||
206 | + } | ||
207 | // 2)获取性别的聚合结果 | 207 | // 2)获取性别的聚合结果 |
208 | Object genderAgg = aggregationResult.get("genderAgg"); | 208 | Object genderAgg = aggregationResult.get("genderAgg"); |
209 | if (genderAgg != null) { | 209 | if (genderAgg != null) { |
-
Please register or login to post a comment