I use TS to search trough 2 models (classes) at the same time:
class Product < ActiveRecord::Base
belongs_to :user
belongs_to :photo
has_many :variants
end
class Article < ActiveRecord::Base
belongs_to :user
belongs_to :photo
end
In controller:
@item_facets = ThinkingSphinx.facets( options[:search],
:classes => [Product, Article],
:include => [:user, :photo])
@items = @items_facets.for
Is it possible somehow to use eager loading for :variants
?