Skip to content

Commit 5c704da

Browse files
committed
[STORE] Opimitize response changes
1 parent 25d7333 commit 5c704da

File tree

1 file changed

+2
-2
lines changed
  • elasticsearch-persistence/lib/elasticsearch/persistence/repository/response

1 file changed

+2
-2
lines changed

elasticsearch-persistence/lib/elasticsearch/persistence/repository/response/results.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ def max_score
5858
# Yields [object, hit] pairs to the block
5959
#
6060
def each_with_hit(&block)
61-
results.zip(response[HITS][HITS]).each(&block)
61+
results.zip(raw_response[HITS][HITS]).each(&block)
6262
end
6363

6464
# Yields [object, hit] pairs and returns the result
6565
#
6666
def map_with_hit(&block)
67-
results.zip(response[HITS][HITS]).map(&block)
67+
results.zip(raw_response[HITS][HITS]).map(&block)
6868
end
6969

7070
# Return the collection of domain objects

0 commit comments

Comments
 (0)