Authored by unknown

fix /productindex/aggProductList

... ... @@ -157,6 +157,9 @@ public class SearchServiceHelper {
if (!paramMap.containsKey(paramName) || StringUtils.isBlank(paramMap.get(paramName))) {
return false;
}
if(paramMap.get(paramName).equals("null")){
return false;
}
if (StringUtils.isNotBlank(filterParamName) && paramName.equals(filterParamName)) {
return false;
}
... ...
... ... @@ -100,9 +100,9 @@ public class AggProductListServiceImpl implements IAggProductListService, Applic
private int getTopHitsBucketSize(Map<String, String> paramMap) {
try {
int count = Integer.parseInt(paramMap.get("aggTypeSize"));
return count <= 0 ? 0 : count;
return count <= 0 ? 1 : count;
} catch (Exception e) {
return 0;
return 1;
}
}
... ...