Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/main/java/edu/harvard/iq/dataverse/api/Search.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> totalFilterQueries = new ArrayList<>();
totalFilterQueries.addAll(filterQueries);
totalFilterQueries.add(SearchFields.TYPE + allTypes);
Expand Down