This is a known limitation. From CHANGES.txt: * SOLR-2345: Enhanced geodist() to work with an RPT field, provided that the field is referenced via 'sfield' and the query point is constant. (David Smiley)
The reason why that limitation is there relates to the fact that the function query parser will attempt to resolve the field name if it's referenced as an argument, and that'll fail because you can't get a ValueSource from an RPT field because a ValueSource is a single-valued construct and RPT isn't limited in that way ~ David Billnbell wrote > David, > > We noticed in 4.5 that "sort=geodist(store_geohash) asc" does not work > anymore. It works only if we: "sfield=store_geohash&sort=geodist() asc" > > Thanks. ----- Author: http://www.packtpub.com/apache-solr-3-enterprise-search-server/book -- View this message in context: http://lucene.472066.n3.nabble.com/SOLR4-Spatial-sorting-and-query-string-tp4084318p4085587.html Sent from the Solr - User mailing list archive at Nabble.com.