diff options
author | Olivier Lamy <olamy@apache.org> | 2014-05-02 15:53:54 +1000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2014-05-02 15:53:54 +1000 |
commit | 0312f52d7f6a51359a83c721d59ca1def12c5a07 (patch) | |
tree | d2f099efdc2467f2c9c7a6429c88b8e931c3ee0d /archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src | |
parent | 10a0761768c8704497aefe730677bfd38a39a0a1 (diff) | |
download | archiva-0312f52d7f6a51359a83c721d59ca1def12c5a07.tar.gz archiva-0312f52d7f6a51359a83c721d59ca1def12c5a07.zip |
[MRM-1836] Make search limit (maxCount) configurable via UI
Diffstat (limited to 'archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src')
-rw-r--r-- | archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultSearchService.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultSearchService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultSearchService.java index a26fd7fdf..d944893aa 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultSearchService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src/main/java/org/apache/archiva/rest/services/DefaultSearchService.java @@ -144,6 +144,7 @@ public class DefaultSearchService } SearchFields searchField = getModelMapper().map( searchRequest, SearchFields.class ); SearchResultLimits limits = new SearchResultLimits( 0 ); + limits.setPageSize( searchRequest.getPageSize() ); // if no repos set we use ones available for the user if ( searchField.getRepositories() == null || searchField.getRepositories().isEmpty() ) |