If you want other models returned by the search, you'll need to have a field with that name in their indices too.
You could either go through associations to get the appropriate peoples' genders, or you could just have both genders in a single string for the field: indexes '"M F"', :as => :gender Thus, the condition filter will have no impact on non-Person results. -- Pat On 9 Apr 2014, at 12:03 am, mamesaye kane <[email protected]> wrote: > just in person > > > ThinkingSphinx::Index.define :person, :with => :active_record, :delta => true > do > #Fields > > indexes alignment > indexes gender > indexes ethnicity > > #Attributes > has personSegments.person.id, :as => :person_ids > > > > -- > 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. -- 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.
