We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3c5b55 commit b7ae7efCopy full SHA for b7ae7ef
src/Elasticsearch/Helper/Iterators/SearchResponseIterator.php
@@ -128,15 +128,13 @@ public function rewind()
128
*/
129
public function next()
130
{
131
- if ($this->current_key !== 0) {
132
- $this->current_scrolled_response = $this->client->scroll(
133
- array(
134
- 'scroll_id' => $this->scroll_id,
135
- 'scroll' => $this->scroll_ttl
136
- )
137
- );
138
- $this->scroll_id = $this->current_scrolled_response['_scroll_id'];
139
- }
+ $this->current_scrolled_response = $this->client->scroll(
+ array(
+ 'scroll_id' => $this->scroll_id,
+ 'scroll' => $this->scroll_ttl
+ )
+ );
+ $this->scroll_id = $this->current_scrolled_response['_scroll_id'];
140
$this->current_key++;
141
}
142
0 commit comments