Hi all!
I index my parties (contacts) using the following block:
class Party
define_index do
indexes [:last_name, :middle_name, :first_name], :as
=> :name, :sortable => true
has :archived_at
end
end
Archived parties are parties which I don't want to normally find. So,
when I search, I generally want to exclude them.
I tried doing this:
Party.search("beausoleil", :conditions => {:archived_at => nil})
Party.search("beausoleil", :conditions => {:archived_at => 0})
Both of these fail and return models which are archived.
Does anybody have any ideas how I can exclude those models from my
search results?
Thanks!
François
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---