We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25d7333 commit 5c704daCopy full SHA for 5c704da
elasticsearch-persistence/lib/elasticsearch/persistence/repository/response/results.rb
@@ -58,13 +58,13 @@ def max_score
58
# Yields [object, hit] pairs to the block
59
#
60
def each_with_hit(&block)
61
- results.zip(response[HITS][HITS]).each(&block)
+ results.zip(raw_response[HITS][HITS]).each(&block)
62
end
63
64
# Yields [object, hit] pairs and returns the result
65
66
def map_with_hit(&block)
67
- results.zip(response[HITS][HITS]).map(&block)
+ results.zip(raw_response[HITS][HITS]).map(&block)
68
69
70
# Return the collection of domain objects
0 commit comments