lib/locomotive/search/concerns/locomotive/liquid/drops/site.rb in locomotivecms-search-0.0.2 vs lib/locomotive/search/concerns/locomotive/liquid/drops/site.rb in locomotivecms-search-0.0.3
- old
+ new
@@ -1,5 +1,5 @@
Locomotive::Liquid::Drops::Site.class_eval do
def search
- @search ||= ::ActiveSearch.search(@context.registers[:controller].params[:search]).where('_stored.site_id' => _source.id)
+ @search ||= ::ActiveSearch.search(@context.registers[:controller].params[:search], "site_id" => _source.id)
end
end