Hi Kiran, I think you need to change RAIDIANS to RADIANS in your has-statements.
Cheers, Mark. On Tue, Jan 12, 2010 at 1:40 AM, Pat Allan <[email protected]> wrote: > Hi Kiran > > It looks pretty much right so far... are @lat and @lng in radians? > > -- > Pat > > On 12/01/2010, at 7:00 AM, Kiran wrote: > > > I have the following index defined: > > > > class Property < AR:Base > > > > has "RAIDIANS(lat)", :as => :lat, :type => :float > > has "RAIDIANS(lng)", :as => :lng, :type => :float > > > > I then do a the following > > > > Property.search :geo => [...@lat, @lng], :order => "@geodist ASC" > > > > I always get and empty results set. If i even do :order => "address" i > > get an empty result set. If i just dont have the order attribute then > > i get a normal result set of about 20 results. > > > > What am i doing wrong? I also tailed the searchd.query.log and > > everytime i add a order options to the search query there is no entry > > in the log when i search. If i dont have the order then it does do the > > query. I am using the latest version of TS and sphinx. > > > > Thanks > > > > Kiran > > > > -- > > 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]<thinking-sphinx%[email protected]> > . > > For more options, visit this group at > http://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]<thinking-sphinx%[email protected]> > . > For more options, visit this group at > http://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.
