erik wrote:
> This is probably dead simple, but I'm not sure how to do it.  Is there
> something I put in my C.search .... call that will modify the
> resulting mysql query to do this automatically?

I'm not sure there's any way to get TS to do what you want in a single
MySQL query, however the search() method supports the :include option,
similar to activerecord.

This *should* reduce the queries somewhat:

  C.search("blah", :include => [:a, :b])

-- James Healy <jimmy-at-deefa-dot-com>  Thu, 23 Apr 2009 15:56:48 +1000

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