lib/elasticity/multi_search.rb in es-elasticity-0.4.1 vs lib/elasticity/multi_search.rb in es-elasticity-0.4.2
- old
+ new
@@ -44,10 +44,10 @@
resp = response["responses"][idx]
search = @searches[name]
results[name] = case
when search[:documents]
- resp["hits"]["hits"].map { |hit| search[:documents].from_hit(hit) }
+ resp["hits"]["hits"].map { |hit| search[:documents].map_hit(hit) }
when search[:active_records]
Search::ActiveRecordProxy.from_hits(search[:active_records], resp["hits"]["hits"])
end
end