lib/elasticsearch/model/response.rb in elasticsearch-model-0.1.3 vs lib/elasticsearch/model/response.rb in elasticsearch-model-0.1.4
- old
+ new
@@ -25,10 +25,12 @@
# Returns the Elasticsearch response
#
# @return [Hash]
#
def response
- @response ||= search.execute!
+ @response ||= begin
+ Hashie::Mash.new(search.execute!)
+ end
end
# Returns the collection of "hits" from Elasticsearch
#
# @return [Results]