Pagination within document

Thanks, works exactly as per need. But do I need to additional index to make the query faster? Currently, I have the following index on the bucket
CREATE INDEX idx_dqt ON bucketName(startTime,endTime) WHERE (type = “results”)