| commit | b82cf897558b7a9be6297f966a6e2ba59d547551 | [log] [tgz] |
|---|---|---|
| author | Akron <nils@diewald-online.de> | Wed Aug 28 11:00:02 2019 +0200 |
| committer | Akron <nils@diewald-online.de> | Wed Aug 28 11:00:02 2019 +0200 |
| tree | 2643d91c651b9fb8adb141fc3885c4a25e860420 | |
| parent | 9614d97db57479f0a43e897f42c2376ff720d203 [diff] [blame] |
Support count=0 to retrieve totalResults only Change-Id: Ibc64fca72d2e8464992fb05dd23507a099be1349
diff --git a/src/main/java/de/ids_mannheim/korap/response/Result.java b/src/main/java/de/ids_mannheim/korap/response/Result.java index 0dabb24..32b3cfe 100644 --- a/src/main/java/de/ids_mannheim/korap/response/Result.java +++ b/src/main/java/de/ids_mannheim/korap/response/Result.java
@@ -90,7 +90,7 @@ this.serialQuery = query; this.startIndex = startIndex; this.itemsPerPage = (itemsPerPage > ITEMS_PER_PAGE_MAX - || itemsPerPage < 1) ? ITEMS_PER_PAGE : itemsPerPage; + || itemsPerPage < 0) ? ITEMS_PER_PAGE : itemsPerPage; this.context = context; };