Commit 81ae9c6152ad02913820c3e8dacf5bc1ece40899
1 parent
beb3601b
Exists in
master
and in
21 other branches
Better load
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
lib/searchkick/search.rb
... | ... | @@ -9,8 +9,9 @@ module Searchkick |
9 | 9 | term = term.to_s |
10 | 10 | fields = options[:fields] || ["_all"] |
11 | 11 | operator = options[:partial] ? "or" : "and" |
12 | + load = options[:load].nil? ? true : options[:load] | |
12 | 13 | collection = |
13 | - tire.search load: true do | |
14 | + tire.search load: load do | |
14 | 15 | query do |
15 | 16 | boolean do |
16 | 17 | must do | ... | ... |