Re: Spatial Search with document score as distance between two points

2013-03-21 Thread Chris Hostetter
: q={!func}geodist()&sfield=latlng&pt=28.635308,77.22496&sort=score+asc ... : Problem : For those documents which doesn't have latlng field, value is coming exceptionally large '8763.191'. I'm pretty sure you're seeing the function assume a default lat,lon of "0,0" for docs thta you hav

Spatial Search with document score as distance between two points

2013-03-20 Thread Harshvardhan Ojha
Hi All, I am using spatial search from mobile to find offers nearby that lat long. Query: q={!func}geodist()&sfield=latlng&pt=28.635308,77.22496&sort=score+asc using this query I am getting distance in kms in score of solr documents. Problem : For those documents which doesn't have latlng field,