Skip to content

Commit 54f19d9

Browse files
authored
Merge pull request IQSS#11584 from IQSS/11542-get-file-count-pg-2
11542 get file count pg 2
2 parents 0f3bb64 + a57c15a commit 54f19d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/edu/harvard/iq/dataverse/api/Search.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,9 @@ public Response search(
114114
if (!types.isEmpty()) {
115115
// Query to get the totals if needed.
116116
// Only needed if the list of types doesn't include all types since missing types will default to count of 0
117-
// Only get the totals for the first page (paginationStart == 0) for speed
118-
if (showTypeCounts && types.size() < objectTypeCountsMap.size() && paginationStart == 0) {
117+
// for 11542 we are removing the test for page one only since the show_type_counts=false will bypass this completely
118+
// SEK 6/17/25
119+
if (showTypeCounts && types.size() < objectTypeCountsMap.size()) {
119120
List<String> totalFilterQueries = new ArrayList<>();
120121
totalFilterQueries.addAll(filterQueries);
121122
totalFilterQueries.add(SearchFields.TYPE + allTypes);

0 commit comments

Comments
 (0)