SEVERE: org.apache.solr.common.SolrException: can not sort on unindexed field: geodist()
This error may occur if you’re using
sort=geodist() in your Solr Spatial / Geographic Search. The reason is probably that you have an empty
pt= value or that the parameter is missing all together.
You might also want to make sure that your Solr version is new enough to support sorting by functions, but if you’re doing anything useful with spatial searches you’re probably updated enough – at least for geodist(). :-)