Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions elasticsearch-model/lib/elasticsearch/model/response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def timed_out
# Returns the statistics on shards
#
def shards
@shards ||= HashWrapper.new(raw_response['_shards'])
@shards ||= response['_shards']
end

# Returns a Hashie::Mash of the aggregations
Expand All @@ -76,7 +76,7 @@ def suggestions
end

def raw_response
@raw_response ||= search.execute!
@raw_response ||= @response ? @response.to_hash : search.execute!
end
end
end
Expand Down