Hi Zef

Fantastic that you've got so much of the information together in a  
pastie. One more thing I'd appreciate seeing is the association  
definitions for the model.

I've not had time to really go through the pastie yet, but will try to  
get to it in the next 24 hours.

Cheers

-- 
Pat

On 05/02/2009, at 3:12 AM, zef wrote:

>
> Just started using Thinking Sphinx, very happy with it, but I've run
> into a problem...
>
> Code is here: http://www.pastie.org/379779
>
> I am using has_many_polymorphs to store addresses, emails, and phone
> numbers which are associated with a location. For some reason, when I
> define an index for more than one of these attributes, I get an error
> during indexing.
>
> If I only index one related item everything works. If I try to index 2
> or more I get the error, although searches are successful for the
> first relationship that I tried to index and for attributes in the
> model itself.
>
> Is there something I should be doing differently? I don't understand
> sql well enough to have a great understanding about what is going on
> here, but it seems like it has to do with the generated sql containing
> this multiple times: "AND owner_type = 'Location'".
>
> Any help would be much appreciated, thank you!
>
>
> I saw this thread which seems related, but don't understand how to
> apply this kind of solution for my situation. Also, it would be nice
> if I didn't have to manually edit the config file to make updates,
> though that would work if need be.
>
> http://groups.google.com/group/thinking-sphinx/browse_thread/thread/d302a1996338a37f/8312e9630e6bea06?lnk=gst&q=ambiguous#8312e9630e6bea06
>
>
> >


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