Commit 45be88e1d512d9249f16943af4282ebf4875907b
1 parent
70b0ffdf
Exists in
master
and in
19 other branches
Added load: {dumpable: true} option - closes #887
Showing
3 changed files
with
10 additions
and
1 deletions
Show diff stats
CHANGELOG.md
lib/searchkick/results.rb
... | ... | @@ -33,7 +33,7 @@ module Searchkick |
33 | 33 | # sort |
34 | 34 | hits.map do |hit| |
35 | 35 | result = results[hit["_type"]][hit["_id"].to_s] |
36 | - if result | |
36 | + if result && !(options[:load].is_a?(Hash) && options[:load][:dumpable]) | |
37 | 37 | unless result.respond_to?(:search_hit) |
38 | 38 | result.define_singleton_method(:search_hit) do |
39 | 39 | hit | ... | ... |