I have an app with an old version of rails - 1.2.2
Thinking Sphinx was mostly working, but then I upgraded to the newest
version of sphinx, and it broke both has_many and belongs_to
association indexing. It also fails on Rails.configuration, but that
was easy enough to work around.
For any has_many association I get the error
"Cannot automatically map attribute #{attribte} in #{Parent
Model} ..."
It is looking in the parent model, not the association model, which
seems to be the problem.
If I do
define_index do
assoc("association_name").attribute
end
Then I don't get a failure message, but the generated sql is still
parent_table.attribute with no joining to the association.
Any help is appreciated. Maybe someone knows the source can point me
to where a patch would need to be applied.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---