I'm still pondering aggregate-type operations for scoring multi-valued fields (original thread: http://goo.gl/zOX53f ), and it occurred to me that distance-sort with SpatialRecursivePrefixTreeFieldType must be doing something like that.
Somewhat surprisingly I don't see this in the documentation anywhere, but I presume the example query: (from: http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4) "q={!geofilt score=distance sfield=geo pt=54.729696,-98.525391 d=10}" assigns the distance/score based on the *closest* lat/long if the sfield is a multi-valued field. That's a reasonable default, but it's a bit arbitrary. Can I sort based on the *furthest* lat/long in the document? Or the average distance? Anyone know more about how this works and could give me some pointers? Thanks.