I wrote SOLR-2155. I am not particularly happy with the distance sort code; It seems that I forgot something. This should not be some kind of mathematical problem, I think it is some kind of internal Lucene problem. If you have only one dot per document, use solr.LatLonType. If you have several, then .... :-( I do not know what the problem is. In Solr 4, the replacement code for this is called SpatialRecursivePrefixTreeFieldType, and it uses different code, but it is similar, so I'm not sure what the problem will be leave or not. But even then, again, I'm not quite happy with the implementation. I know how I want to do it right, but right now it's not at the top of my TODO list.
By the way, you mostly report an error, and the proper place to report an error will be the problem of the project tracker in question - in this case, GitHub SOLR-2155. StackOverflow doesn't make sense for this.
source share