Ah, I found some time and had it pretty much figured out in my head - so now 
it's patched, if you want to use the latest from Github :)

-- 
Pat

On 31/10/2010, at 2:19 PM, Pat Allan wrote:

> At this point, there's no way around this. It shouldn't be too hard to patch 
> - so if you want to try that, please do. Otherwise, log a ticket on Github so 
> I don't forget it.
> 
> In the meantime, though, two separate searches (or no :include argument) is 
> the way to go, sorry.
> 
> -- 
> Pat
> 
> On 31/10/2010, at 2:31 AM, andholt wrote:
> 
>> I'm running the following search:
>> 
>> @results = ThinkingSphinx.search @search, :classes => [Post,
>> User], :include => :user
>> 
>> which results in this error:
>> 
>> "Association named 'user' was not found; perhaps you misspelled it?"
>> 
>> Posts has_many users, but obviously a User does not. Is there a way
>> around this (e.g. specify the include for one class), or do I need to
>> run two separate searches?
>> 
>> 
>> -- 
>> 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.
> 

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