diff --git a/elasticsearch-model/lib/elasticsearch/model/response.rb b/elasticsearch-model/lib/elasticsearch/model/response.rb index 9726ae2c5..fb2c8d206 100644 --- a/elasticsearch-model/lib/elasticsearch/model/response.rb +++ b/elasticsearch-model/lib/elasticsearch/model/response.rb @@ -26,7 +26,7 @@ def initialize(klass, search, options={}) # @return [Hash] # def response - @response ||= HashWrapper.new(search.execute!) + @response ||= HashWrapper.new(@raw_response = search.execute!) end # Returns the collection of "hits" from Elasticsearch