Re: Showing distance in results

2015-01-27 Thread Erick Erickson
Did you just try just setting up the demo then trying the example? I often find if I advance step-by-step from the example, it is much easier to figure things out. sfield is the name of the field containing the location information, "store" in the examples Both "store", and "pt" are required to be

Re: Showing distance in results

2015-01-27 Thread vit
Hi Erick I tried this link but do not see a straight forward answer. For example it says: /You can use the pseudo-field feature to return the distance along with the stored fields of each document by adding fl=geodist() to the request/ So I tried: ...?q={!func}dist(2, lat, lng, 0, 0)&fl=geodist()

Re: Showing distance in results

2015-01-26 Thread Erick Erickson
A very small bit of Googling yeilds: https://wiki.apache.org/solr/SpatialSearch Best, Erick On Mon, Jan 26, 2015 at 2:18 PM, vit wrote: > I have Solr 4.2 > I need to calculate the distance between a point (0, 0) and lat lng in each > document. I do this > http://:9081/solr/collection1/select?q=