Hi,

I have a Model A that is being indexed. Connected to model A via a has_may 
relatiosnhip is model B.
Model B has a boolean attribute active.

My index needs an attribute that shows me whether there are any active Bs 
connected to A.

define index do
  has bs, as: :active
end

So I need to do A.search with: {active: true}.

How can this be done? I just cannot find how to do this with thinking 
sphinx.
Thanks a lot!

Gordon

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/thinking-sphinx/-/d4Kp9g2wAWoJ.
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.

Reply via email to