I'm trying to filter vertices with point properties based on distance, similar to the example at the bottom of the Using search indexes section of the docs:
A query can find all sensors that meet the requirement of being inside the described polygon Distance that is designated as a circle with a center at (-110, 30) and a radius of 20 units with the method Geo.inside().
The "units" used for the radius are actually degrees. What I would like is to find the points within a certain radius in kilometers.
This is apparently supported by Solr, (see distanceUnits
here) and is even the default in the upstream distribution. I tried to change schema.xml
to set distanceUnits=kilometers
in the configuration for RPT, but then the solr core threw the following exception on reload:
org.apache.solr.common.SolrException: Must specify units="degrees" on field types with class SpatialRecursivePrefixTreeFieldType