Hi, I have many sphinx_scopes in my application's models, but one of
them doesn't work, I think it's because the odd way Sphinx store the
associated value.

As an example I will show some key pieces of my Product class model,
product.rb:


...
belongs_to :partner
# And partner belongs to city
...
define_index do
    ...
    has partner.city(:state_name), :as => :state, :type => :string
    ...
end
...
sphinx_scope(:by_state) { | state_name | {
    :with => { :state => state_name }
  } }


Then I try in console:

    Product.by_city('whatever_i_put_here_throws_same_resultset')

I guess sphinx is not storing the string properly, any ideas? Thanks a
lot!

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