Eric, thanks for the quick response. I left out the "d" value, yes, when you
perform a spatial query, we should have a distance of d>0, sorry about that. 

What is the setting of your "store" value, i mean in the schema, was it
marked at LatLong. For some reason i dont see the geodist() being returned
in the result set. my coordinates is setup as  "type=location", below is the
snapshot from my schema.xml.

<field indexed="true" multiValued="false" name="coordinates"
omitNorms="false" omitTermFreqAndPositions="true" stored="true"
termVectors="false" type="location"/>


We are using LucidImagination, so i guess it comes with Solr 4.0, please let
me know if i am wrong. That may be the reason for geodist() not being
returned.I checked the solr version by going to solr admin and checked the
version. it shows 4.0. 

For now i found a work around, this works for me. the distance is returned
in the form of "score". 

http://127.0.0.1:8888/solr/apex_dev/select/?q=*:*+_val_:%22geodist%28%29%22&rows=100&fq={!geofilt}&sfield=coordinates&pt=31.2225,-85.3931&d=50&sort=geodist%28%29%20asc&fl=*,score

I read in a different post that , earlier versions of solr ( prior to 4.0),
we have to use the score option. 

thanks for taking time to try the query.


SN


--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-Geodist-tp3287005p3287806.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to