0

I want to boost the closest distance document. I have constructed the following with help from the docs:

Post to:
{{solr-host}}:8983/solr/{{collection}}/select?rows=5

Body:

{
    'query': '{!boost b=recip(geodist(location_ps,-33.92090033,18.42119421),5e-05,2.0,1.0)}*:*',
    'fields': ['title_s', 'score', 'location_ps']
}

However, I don't get any locaiton_ps in my response.

Any Ideas?

Roman
  • 8,826
  • 10
  • 63
  • 103

1 Answers1

-1

Please see your query, it should be like this

&q={!boost f=recip(geodist(),2,200,20)}canon&fq={!geofilt}&sfield=store&pt=45.15,-93.85&d=50&sort=score desc

If you want to get the return the distance then you could add fl=_dist_:geodist() in your request. This will return the distance to you.

Aman Tandon
  • 1,379
  • 2
  • 13
  • 26