I have boolean attributes in my table and i want to use the conditions
because I need to match each object for every boolean who will be
true.

The following exemple do not work great in my case because it will
return the objects who match both

define_index do
  has :volunteer
  has :contract
  has :full_time
end

:with => {:volunteer => true, :contract => true}

I want to find a way to match with fields...I tried many time without
results ... do I have to pass it as integer

define_index do
  indexes "CRC32(api_profiles.volunteer)", :as => :volunteer, :type
=> :boolean
  indexes "CRC32(api_profiles.contract)", :as => :contract, :type
=> :boolean
  indexes "CRC32(api_profiles.full_time)", :as => :full_time, :type
=> :boolean
end

:conditions => {:volunteer => params[:volunteer].to_crc32}


If someone can give me a clue....

I'm using match_mode :extended2 and mysql (TINYINT) 1

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