Authored by hugufei

聚合结果添加age_level

@@ -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) {