I'm having trouble getting sphinx to index my model by a field and was hoping someone could take a quick look and point me in the right direction.
I have models which for simplicities sake I will call People andClubs, which are related through a has_and_belongs_to_many relationship. They both have names associated with them. I have in People in my define_index do line: indexes clubs[0].name, :as => club_name, :sortable => true My perfect scenario would be to be able to go People.search and put in a Club name and find all People that are also members of the Club, but for now I'll settle if I can just get it indexed by their first Club. For reasons that are long and boring, I'd like to be able support the search in this direction, and not just pull a list from the Club directly in the opposite direction. Unfortunately, what I put there doesn't seem to be working at all, as searches for people by words found in club names aren't turning anything up. If I attempt to sort by club_name, it just sorts by another field. Thanks in advance for any help anyone can provide! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
