This is my index definition
define_index do
    indexes :name,                          :as
=> :first_name, :sortable => true
    indexes outlet_type_id
    indexes circulation_value
    indexes address.city,                 :as => :city, :sortable =>
true
    indexes address.state_province, :as => :state_province, :sortable
=> true
    indexes address.country,            :as => :country, :sortable =>
true
    indexes subjects.name,              :as => :subject_field
  end

Model.search(:conditions =>{:state_province => "NC"}) works fine.
but what I want to do is to search for NC or "North Carolina"
I tried using
Model.search(:conditions =>{:state_province => "(NC|North
Carolina)"}), but it returns an empty set.
What am I doing wrong here, is it even possible?
I'm really stuck and I need this urgently. Pat?

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