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 64c3f1d commit 62e2faeCopy full SHA for 62e2fae
elasticsearch-model/lib/elasticsearch/model/response.rb
@@ -60,7 +60,7 @@ def timed_out
60
# Returns the statistics on shards
61
#
62
def shards
63
- @shards ||= HashWrapper.new(raw_response['_shards'])
+ @shards ||= response['_shards']
64
end
65
66
# Returns a Hashie::Mash of the aggregations
@@ -76,7 +76,7 @@ def suggestions
76
77
78
def raw_response
79
- @raw_response ||= search.execute!
+ @raw_response ||= @response ? @response.to_hash : search.execute!
80
81
82
0 commit comments