1
0
Fork 0
mirror of synced 2024-09-09 14:11:30 +12:00
This commit is contained in:
adrinr 2023-03-16 10:08:20 +01:00
parent 41537cd00c
commit 5ffa51d1f4

View file

@ -475,7 +475,7 @@ export class QueryBuilder<T> {
async run() { async run() {
if (this.#skip) { if (this.#skip) {
await this.#skipPages(this.#skip) await this.#skipItems(this.#skip)
} }
return await this.#execute() return await this.#execute()
} }
@ -485,7 +485,7 @@ export class QueryBuilder<T> {
* For the given builder, walk through pages using bookmarks until the desired * For the given builder, walk through pages using bookmarks until the desired
* page has been met. * page has been met.
*/ */
async #skipPages(skip: number) { async #skipItems(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
const prevIncludeDocs = this.#includeDocs const prevIncludeDocs = this.#includeDocs