Solr 地理位置搜索

不需要排序
fq
{!geofilt sfield=LatitudeLongitude pt=31.8671998804321,117.308743414503 d=5}

fl
LatitudeLongitude,CompanyName,Address,distance:geodist(LatitudeLongitude,31.8671998804321,117.308743414503)

需要排序
q
{!geofilt score=distance sfield=LatitudeLongitude pt=31.8671998804321,117.308743414503 d=1}

fl
score,LatitudeLongitude,CompanyName,Address,distance:geodist(LatitudeLongitude,31.8671998804321,117.308743414503)

sort
score desc

filter=false

{!geofilt score=distance filter=false}
City:"合肥"
score,LatitudeLongitude,CompanyName,Address,distance:geodist(LatitudeLongitude,31.8671998804321,117.308743414503)

sort

geodist() desc