Without Radians - it returns 1 result for Chicago and 5 results for San 
Francisco, much less then db has.



On Dec 1, 2011, at 11:38 PM, Pat Allan wrote:

> Is it any better if you don't have the non-radians latitude and longitude 
> attributes?
> 
> -- 
> Pat
> 
> On 02/12/2011, at 11:35 AM, Manish M. Shah wrote:
> 
>> Hi Path,
>> 
>> Thanks for helping -
>> 
>> define_index looks like this in Address model:
>> 
>> define_index do
>>   has latitude, longitude
>>   has "RADIANS(latitude)",  :as => :lat,  :type => :float
>>   has "RADIANS(longitude)", :as => :lng, :type => :float  
>> 
>>   indexes city
>>   indexes listings.title, :as => :listing_title
>>   indexes listings.description, :as => :listing_description
>>   indexes listings.categories.name, :as => :category_names
>>   indexes listings.created_at, :as => :listing_created_at, :sortable => true
>>   set_property :delta => true
>> end 
>> 
>> That's the full query I'm running.
>> 
>> 
>> On Dec 1, 2011, at 11:31 PM, Pat Allan wrote:
>> 
>>> Is that the entire search query you're running? There's no keywords or 
>>> distance filters?
>>> 
>>> Also, what does your define_index block look like for the Address model?
>>> 
>>> -- 
>>> Pat
>>> 
>>> On 02/12/2011, at 11:24 AM, mrmanishs wrote:
>>> 
>>>> When I do a:
>>>> 
>>>> @addresses = Address.search :geo => [@lat, @lng], :order => "@geodist
>>>> ASC, @relevance DESC"
>>>> 
>>>> I only get 4 results back. I know for a fact that I have a lot more
>>>> addresses available with further geo-distances then the 4 returned
>>>> when I select the city of Chicago
>>>> 
>>>> However, for the city of San Francisco, I only get 2.
>>>> 
>>>> Is there a configuration that tells geo search to return only a
>>>> certain distance away, or is there a default set?
>>>> 
>>>> I can't figure out what's going on...
>>>> 
>>>> -- 
>>>> 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.
>>>> 
>>> 
>>> -- 
>>> 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.
>> 
>> -- 
>> 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.
>> 
> 
> -- 
> 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.

-- 
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