public class ElasticsearchDocumentDistance extends ElasticsearchDocumentResult implements DocumentDistance
hit
Constructor and Description |
---|
ElasticsearchDocumentDistance(org.elasticsearch.search.SearchHit hit,
com.google.common.base.Function<? super String,? extends org.locationtech.spatial4j.context.SpatialContext> geoContextMapper,
String geoPointField,
IRI units,
org.elasticsearch.common.geo.GeoPoint srcPoint,
org.elasticsearch.common.unit.DistanceUnit unit) |
Modifier and Type | Method and Description |
---|---|
double |
getDistance() |
getDocument
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDocument
public ElasticsearchDocumentDistance(org.elasticsearch.search.SearchHit hit, com.google.common.base.Function<? super String,? extends org.locationtech.spatial4j.context.SpatialContext> geoContextMapper, String geoPointField, IRI units, org.elasticsearch.common.geo.GeoPoint srcPoint, org.elasticsearch.common.unit.DistanceUnit unit)
public double getDistance()
getDistance
in interface DocumentDistance
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.