fix /productindex/aggProductList
Showing
2 changed files
with
5 additions
and
2 deletions
@@ -157,6 +157,9 @@ public class SearchServiceHelper { | @@ -157,6 +157,9 @@ public class SearchServiceHelper { | ||
157 | if (!paramMap.containsKey(paramName) || StringUtils.isBlank(paramMap.get(paramName))) { | 157 | if (!paramMap.containsKey(paramName) || StringUtils.isBlank(paramMap.get(paramName))) { |
158 | return false; | 158 | return false; |
159 | } | 159 | } |
160 | + if(paramMap.get(paramName).equals("null")){ | ||
161 | + return false; | ||
162 | + } | ||
160 | if (StringUtils.isNotBlank(filterParamName) && paramName.equals(filterParamName)) { | 163 | if (StringUtils.isNotBlank(filterParamName) && paramName.equals(filterParamName)) { |
161 | return false; | 164 | return false; |
162 | } | 165 | } |
@@ -100,9 +100,9 @@ public class AggProductListServiceImpl implements IAggProductListService, Applic | @@ -100,9 +100,9 @@ public class AggProductListServiceImpl implements IAggProductListService, Applic | ||
100 | private int getTopHitsBucketSize(Map<String, String> paramMap) { | 100 | private int getTopHitsBucketSize(Map<String, String> paramMap) { |
101 | try { | 101 | try { |
102 | int count = Integer.parseInt(paramMap.get("aggTypeSize")); | 102 | int count = Integer.parseInt(paramMap.get("aggTypeSize")); |
103 | - return count <= 0 ? 0 : count; | 103 | + return count <= 0 ? 1 : count; |
104 | } catch (Exception e) { | 104 | } catch (Exception e) { |
105 | - return 0; | 105 | + return 1; |
106 | } | 106 | } |
107 | } | 107 | } |
108 | 108 |
-
Please register or login to post a comment