1
0
Fork 0
mirror of synced 2024-08-03 20:31:50 +12:00

Add comments

This commit is contained in:
adrinr 2023-03-16 10:00:40 +01:00
parent bf32801917
commit 41537cd00c

View file

@ -480,6 +480,11 @@ export class QueryBuilder<T> {
return await this.#execute()
}
/**
* Lucene queries do not support pagination and use bookmarks instead.
* For the given builder, walk through pages using bookmarks until the desired
* page has been met.
*/
async #skipPages(skip: number) {
// Lucene does not support pagination.
// Handle pagination by finding the right bookmark