An extended search is performed by creating the Gravsearch query string using the service ExtendedSearchParams. This service used to return an Observable of a BehaviorSubject which was both unnecessary and harmful. It caused a lot of unclosed subscriptions, so that the same queries were performed over and over again.
If we have 25 overall results, the max. offset is 0.
If we we have 24 overall results, the max. offset is 0.
If we have 26 overall results, the max. offset is 1.
An extended search is performed by creating the Gravsearch query string using the service
ExtendedSearchParams
. This service used to return an Observable of aBehaviorSubject
which was both unnecessary and harmful. It caused a lot of unclosed subscriptions, so that the same queries were performed over and over again.requires https://github.com/dhlab-basel/Knora-ui/pull/133 (has been merged)
I refactored paging logic a bit. The max. offset is
paging limit is 25, first offset is 0.
If we have 25 overall results, the max. offset is 0. If we we have 24 overall results, the max. offset is 0. If we have 26 overall results, the max. offset is 1.
close #27 relates to #70