I have the following code in my Model:
has_many :links
searchable do
text :name, :as => :name_textp
integer :membership_ordering
text :business_description, :stored => true
text :tags do
tags.map(&:name)
end
text :links_name do
company_links.map(&:name)
end
text :links_description do
company_links.map(&:description)
end
text :links_tags do
links.map(&:tags_text)
end
end
When for some reason I update the model, Solr automatically add the change to the index. But when I update links
, it seems it doesn't until I manually call the sunspot:solr:reindex. I also added the following code to the association:
searchable do
text :name
text :description
text :tags_text
end
But I can't get it work. What else do I need to do?