I have a model with latitude and longitude. This model has also a
boolean variable, and when this variable is set to true, I want these
records to be returned in every search, no matter the location.

So I would need something like:
Place.search((:geo => [@lat,@lng], :with => {"@geodist" =>
0.0..10000.0 }) OR always_show => true)

(of course I know the above syntax is not correct)

I have tried some combinations in order to include an "OR" condition
within the search sentence, but none of them work.

Anyone can figure out a way to implement this search?? Any ideas or
alternatives??

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