lib/elasticity/index_mapper.rb in es-elasticity-0.4.3 vs lib/elasticity/index_mapper.rb in es-elasticity-0.4.4

- old
+ new

@@ -120,9 +120,10 @@ end # Creates a instance of a document from a ElasticSearch hit data. def map_hit(hit) attrs = { _id: hit["_id"] } + attrs.merge!(_score: hit["_score"]) attrs.merge!(hit["_source"]) if hit["_source"] if hit["highlight"] highlighted_attrs = attrs.dup attrs_set = Set.new