Skip to content

Commit 61f9f0e

Browse files
committed
Merge pull request hmalphettes#12 from nVVEBd/master
readable-stream 'size' control
2 parents af4a8da + d1850bf commit 61f9f0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/readable-search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ ReadableHits.prototype._fetchNextPage = function() {//size) {
5353
self.emit('error', e);
5454
return self.push(null);
5555
}
56-
self.total = resp.hits.total;
56+
self.total = resp.hits.hits.length;
5757
self._hits = resp.hits.hits;
5858
self.from += self._hits.length;
5959
if (self.from >= self.total) {

0 commit comments

Comments
 (0)