diff --git a/src/main/java/edu/harvard/iq/dataverse/api/Search.java b/src/main/java/edu/harvard/iq/dataverse/api/Search.java index 7a2f09d821a..3aeb75c3b6a 100644 --- a/src/main/java/edu/harvard/iq/dataverse/api/Search.java +++ b/src/main/java/edu/harvard/iq/dataverse/api/Search.java @@ -114,8 +114,9 @@ public Response search( if (!types.isEmpty()) { // Query to get the totals if needed. // Only needed if the list of types doesn't include all types since missing types will default to count of 0 - // Only get the totals for the first page (paginationStart == 0) for speed - if (showTypeCounts && types.size() < objectTypeCountsMap.size() && paginationStart == 0) { + // Only get the totals for the first page (paginationStart == 0) for speed removing paginationStart == 0 for 11542 SEK 06/04/25 + // how slow is it to leave pagination start == 0 out? SEK 06/04/2025? ref11542 + if (showTypeCounts && types.size() < objectTypeCountsMap.size()) { List totalFilterQueries = new ArrayList<>(); totalFilterQueries.addAll(filterQueries); totalFilterQueries.add(SearchFields.TYPE + allTypes);