I have 3 models:

class Category < ActiveRecord::Base
  acts_as_nested_set  
  has_and_belongs_to_many :products   
end

class Product < ActiveRecord::Base   
  acts_as_taggable   
  has_and_belongs_to_many :categories
  ...
  define_index do  
  ...
  has categories(:id), :as => :category_ids  
  set_property :delta => :delayed
end

class CategoriesProduct < ActiveRecord::Base  
end

----------------------------------------------
The categories_products table looks like:

id      
product_id      
category_id     
delta
----------------------------------------------


When I move a category in the hirarchy using acts_as_nested_set 
(move_to_child_of ...) everything
works fine, but when I move a product to another category TS does not find the 
product
in the new category. After doing a rake ts:in everything works fine.

What I'am doing wrog here?

Thanx

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.

Reply via email to