Hi Pat,
that's not what I want - this sample is simplified...
Range only 200 because I don't want all hotels of Hamburg - just for
instance.
A more detailed sample:
Tip.search "berlin golf", :geo => [city_lat, city_long],
:with => {'@geodist' => Range.new(0.0, 2800000.0)},
:order => "@geodist ASC", :per_page => 50,
:conditions => {:theme_name => params[:theme]}
So the user is looking for a hotel in Berlin (+280 km range) which has
probably a golf course.
Well, I get only the 1 hotel in Berlin but not the other 80 hotels in
Hamburg which are in range and has a golf course as well.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---