From 0312f52d7f6a51359a83c721d59ca1def12c5a07 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 2 May 2014 15:53:54 +1000 Subject: [MRM-1836] Make search limit (maxCount) configurable via UI --- .../main/java/org/apache/archiva/rest/services/DefaultSearchService.java | 1 + 1 file changed, 1 insertion(+) (limited to 'archiva-modules/archiva-web/archiva-rest/archiva-rest-services/src') 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() ) -- cgit v1.2.3