I have the following model set up: class Business has_many :locations end
class Location belongs_to :business end Location has latitude and longitude values as radians. I would like to "geo search" across all the locations when I do Business.search. Is this possible? If so, can you show me how to do the define_index in Business class? I'm thinking of something like: define_index do indexes locations.lat, :as => :latit indexes locations.lng, :as => :longit end Please let me know if I'm in the right direction. Thank you in advance. -- Thuva --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
