I am trying to get multi_search to search across multiple models. I
have the following:
class Drug < ActiveRecord::Base
acts_as_ferret :store_class_name => true
end
class Target < ActiveRecord::Base
acts_as_ferret :store_class_name => true
end
and I am trying to query via:
@drugs = Drug.multi_search(params[:query], [Target])
But I get no results. If I go:
@drugs = Drug.find_by_contents(params[:query])
I get results back no problem (same if I just query the target), but
even after I delete the index and rebuild both the drug and target index
I get nothing back. I don’t even get any results if I go:
@drugs = Drug.multi_search(params[:query])
I have tried this with the latest trunk build and the latest stable
version. I am really at a loss, and was hoping someone might have some
suggestions.
Thanks