My Store model is like..

has_one :address, :as => :addressible, :dependent => :destroy

The Address model has lat and lng columns as floats

If I do this in my define index..

has 'RADIANS(addressible.lat)',  :as => :latitude,  :type => :float
        has 'RADIANS(addressible.lng)', :as => :longitude, :type
=> :float


I get this errror

sql_range_query: Unknown column 'addressible.lat' in 'field list'

What am I doing wrong here?

Thanks

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