Neil Cauldwell
2008-Sep-06 10:34 UTC
Hiding private records from search results (Thinking Sphinx)
If your app has an is_private boolean attribute on certain models, and records where Model.is_private? == true should be ignored from search results, would you define these records to be ignored in the search indices (not that I know how to do this with Thinking Sphinx) or would you use conditions in the search (?); User.search "Australia", :conditions => {:is_private => false} -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---