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].
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en.


Reply via email to