Srinivasan
unread,Jul 24, 2008, 10:20:02 AM7/24/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Thinking Sphinx
Hi,
Is there a way to configure ThinkingSphinx or Sphinx to force delta-
reindex the left side model of a one-to-one relationship upon a change
in the right side model? For example, lets say we have the following
models:
class Order < ActiveRecord::Base
has_one :invoice
define_index do
indexes invoice.description, :as => "desc"
set_property :delta => true
end
# . . .
end
class Invoice < ActiveRecord::Base
# has the attr "description"
belongs_to :order
# . . .
end
If "an_order.invoice.description" is updated, the changes are not
available in Order.search unless full indexing is done. Can this be
better? And also, how do we deal with has_many-through and habtm
relationships?
Thanks in advance. Specifically, thanks Pat, for the great plugin.
-- Srini