You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@solr.apache.org by Doss <it...@gmail.com> on 2023/12/20 06:18:40 UTC
how to use geodist() in conditional sorting
Hi,
I am using location filed and geodist() asc to show nearest (users latlong)
matching results on top.
Now I have a requirement to rank and show the results based on ranking eg.,
sort=if(query({geodist():[0+TO+10]}),15,if(query({geodist():[11+TO+20]}),12,4))
desc
Conditional based ranking and show results accordingly, but I am getting
like "Can't determine a Sort Order (asc or desc) in sort spec"
Thanks