Hi,

Is there currently any way to specify join constraints outside of the
association definition? I ask because I have has_many associations
which should be ignored by the search under certain conditions but
they don't belong on the association. At the moment the only solution
I can think of is to duplicate the associations just for the indexer.
I tried adding where conditions but that has resulted in disappearing
records as the filtering is of course done post-join.

I was thinking it could be achieved by allowing named_scopes to be
used in the define_index block the same way as associations are
drilled-down. It seems like it would be a substantial rewrite of the
association code to achieve this?

Any help appreciated.

Best regards,
Andrew

-- 
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