Hi, I'm trying to sort by distance like this:
sort=dist(2,lat,lon,55.755786,37.617633) asc In general results are sorted, but some documents are not in right order. I'm using DistanceUtils.getDistanceMi(...) from lucene spatial to calculate real distance after reading documents from Solr. Solr version from trunk. <fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <field name="lat" type="double" indexed="true" stored="true"/> <field name="lon" type="double" indexed="true" stored="true"/> Thanks. -- Pavel Minchenkov