After searching quite some time I found the answer here. The syntax is
ThinkingSphinx::Index.define 'spree/product', :with => :active_record do
...
end
Question
how can I index over a model, whihc is defined in Spree like Spree:Product?
ThinkingSphinx::Index.define :products
does not work (uninitialized constant Product). What is the syntax for using Spree:Product model? Thanks!
Solution
After searching quite some time I found the answer here. The syntax is
ThinkingSphinx::Index.define 'spree/product', :with => :active_record do
...
end