Thanks for the reply.
Well, ideally it'd be even better if I didn't go clubs[0], and could
do something like clubs.each {|club| indexes club.name}.
What exactly do you mean by single record, and what are the general
ways that it is possible to index a m2m relationship? Maybe I could
work in something broader if it would get in the Club names to People
searches.
On Aug 17, 5:05 am, James Healy <[email protected]> wrote:
> Maneki Neko wrote:
> > I have in People in my define_index do line:
> > indexes clubs[0].name, :as => club_name, :sortable => true
>
> Unfortunately, clubs[0] is not a valid syntax in your index definition.
> Defining your index is about specifying the database columns needed for
> your index, not the specific rows.
>
> I'm not sure how you'd go about indexing only a single record in a m2m
> join, sorry.
>
> -- James Healy <jimmy-at-deefa-dot-com> Mon, 17 Aug 2009 19:02:17 +1000
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---