@Override public int getPageSize() { final FessConfig fessConfig = ComponentUtil.getFessConfig(); if (num == null) { num = fessConfig.getPagingSearchPageSizeAsInteger(); } if (num > fessConfig.getPagingSearchPageMaxSizeAsInteger().intValue() || num <= 0) { num = fessConfig.getPagingSearchPageMaxSizeAsInteger(); } return num; }
public void initialize() { final FessConfig fessConfig = ComponentUtil.getFessConfig(); if (start == null) { start = fessConfig.getPagingSearchPageStartAsInteger(); } if (num == null) { num = fessConfig.getPagingSearchPageSizeAsInteger(); } else if (num > fessConfig.getPagingSearchPageMaxSizeAsInteger().intValue()) { num = fessConfig.getPagingSearchPageMaxSizeAsInteger(); } }