Thanks for your help Pat. At the end I haven't been able to implement the search in that way, so I'm going to try to implement two separate searches and then I'll order the results manually.
Peace & Love brothers! On 26 feb, 05:04, Pat Allan <[email protected]> wrote: > I'm not quite sure how this will fit with the geodist side of things, but I'd > start by reading this tip about using OR logic with > attributes:http://freelancing-god.github.com/ts/en/common_issues.html#or_attributes > > Cheers > > -- > Pat > > On 25/02/2011, at 12:01 PM, Yomismo wrote: > > > 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 > > athttp://groups.google.com/group/thinking-sphinx?hl=en. -- 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.
