lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vit <>
Subject Re: Showing distance in results
Date Tue, 27 Jan 2015 16:30:24 GMT
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()&wt=xml&indent=true
<http://>   which returnes:
*<lst name="error">
  <str name="msg">Error parsing fieldname: geodist - not enough
  <int name="code">400</int>

Also it is not clear what is sfield=store in all examples, like this:
...&q={!func}geodist()&sfield=store&pt=45.15,-93.85&sort=score asc <http://>
So if possible could you explain this either. 

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message