Add comments

This commit is contained in:
adrinr 2023-03-16 10:00:40 +01:00
parent bf32801917
commit 41537cd00c
1 changed files with 5 additions and 0 deletions

View File

@ -480,6 +480,11 @@ export class QueryBuilder<T> {
return await this.#execute() 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) { async #skipPages(skip: number) {
// Lucene does not support pagination. // Lucene does not support pagination.
// Handle pagination by finding the right bookmark // Handle pagination by finding the right bookmark