Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max results #20

Open
arieljake-bluescape opened this issue Jan 8, 2018 · 0 comments
Open

Max results #20

arieljake-bluescape opened this issue Jan 8, 2018 · 0 comments

Comments

@arieljake-bluescape
Copy link

arieljake-bluescape commented Jan 8, 2018

Can we add a param to enable us to convert this:

if (self.from >= self.total) { self._next = false; // we got them all. }

into this:

if (self.from >= self.total || (self.max >= 0 && self.from >= self.max)) { self._next = false; // we got them all. }

perhaps:

function ReadableHits(queryExec, parseHit) { .... this.max = queryExec.max || -1; }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant