Skip to content

Commit 9a3341d

Browse files
committed
Fix SearchHitIterator key duplicates (#859)
1 parent cf42042 commit 9a3341d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elasticsearch/Helper/Iterators/SearchHitIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function current()
130130
*/
131131
public function key()
132132
{
133-
return $this->current_hit_index;
133+
return $this->current_key;
134134
}
135135

136136
/**

0 commit comments

Comments
 (0)