Package org.apache.solr.search.function.distance
Solr implementations of
ValueSource
for distance based function queries.-
Class Summary Class Description GeoDistValueSourceParser Parses "geodist" creatingHaversineConstFunction
orHaversineFunction
or callingSpatialStrategy.makeDistanceValueSource(org.locationtech.spatial4j.shape.Point,double)
.GeohashFunction Takes in a latitude and longitude ValueSource and produces a GeoHash.GeohashHaversineFunction Calculate the Haversine distance between two geo hash codes.HaversineConstFunction Haversine function with one point constantHaversineFunction Calculate the Haversine formula (distance) between any two points on a sphere Takes in four value sources: (latA, lonA); (latB, lonB).SquaredEuclideanFunction While not strictly a distance, the Sq.StringDistanceFunction VectorDistanceFunction Calculate the p-norm for a Vector.