I am using application-wide search over User, Group, Discussion and
Document objects.  Discussions are a special case in that they can be
"deleted" (deleted_at will be something other than nil).

I have this in my user model:

    sphinx_scope(:active) {
      {:conditions => {:deleted_at => nil}}
    }

    default_sphinx_scope :active

but the default scope does not seem to affect application-wide search;
I am still getting deleted comments in my results even after
reindexing.

Is there any way to use scopes in application-wide search, or a
similar concept that will do the job?

-- 
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.

Reply via email to