When you say you are using "LucidImagination", what is that? The Dev version of LucidWorks? A certified distro (which I don't think there are any for trunk)?
I'm using a recent (last week) trunk version that I built manually, but I think this has been for a while.... Anyway, pasting in your field definition and query (from your first post) returns the distance as a field just fine, so I suspect something else you've changed somehow is interfering. Have you re-indexed from scratch? I often delete the entire data/index directory (directory to!). Or you have an earlier version that I think you do, have you looked at the JIRA to see when it was applied to trunk? One approach would be to just start with a stock Solr and try the example, and then build up gradually to where you are now to see what change you might have introduced is the problem, but that's a guess... Best Erick On Fri, Aug 26, 2011 at 3:37 PM, solrnovice <manisha...@yahoo.com> wrote: > 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. >