mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-03-09 14:33:32 +00:00
handle paging case
This commit is contained in:
parent
f11d939131
commit
ad8930fdba
@ -165,7 +165,8 @@ public class PersistedJpaBundleProvider implements IBundleProvider {
|
||||
}
|
||||
|
||||
protected List<IBaseResource> doSearchOrEverything(final int theFromIndex, final int theToIndex) {
|
||||
if (mySearchEntity.getNumFound() <= 0) {
|
||||
if (mySearchEntity.getTotalCount() != null && mySearchEntity.getNumFound() <= 0) {
|
||||
// This is a _summary=count search
|
||||
return Collections.emptyList();
|
||||
}
|
||||
final ISearchBuilder sb = myDao.newSearchBuilder();
|
||||
|
Loading…
x
Reference in New Issue
Block a user