Use Rails 2 style includes, and it should all work nicely :)

Entry.search 'foo', :include => :entry_values

-- 
Pat

On 03/08/2010, at 12:32 PM, Raphael wrote:

> Can i do a eager loading in TS search results?
> 
> Like
> 
> Entry.search(...).includes(:entry_values)
> 
> Thanks in advance..
> 
> -- 
> 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.
> 

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