Thanks following the associations worked.

ThinkingSphinx::Index.define :segment, :with => :active_record, :delta => 
> true do
> # fields
>   indexes name, :sortable => true
>   
>   indexes personSegments.person.gender, :as => :gender
>   indexes personSegments.person.ethnicity, :as => :ethnicity
>
 
>
has tvShows(:id), :as => :tv_show_ids 
>

and

 ThinkingSphinx::Index.define :person, :with => :active_record, :delta => 
> true do
> #Fields
>   indexes alignment
>   indexes gender
>   indexes ethnicity
>  
>   indexes segments.personSegments.person.gender, :as => :gender
>   indexes segments.personSegments.person.ethnicity, :as => :ethnicity
>
 
>
has tvShows(:id), :as => :tv_show_ids 
>

Appreciate the help.

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/d/optout.

Reply via email to