The default unit for the spatial distance projection in ES is not documented (same for Lucene's)

Activity

Show:

Yoann RodièreAugust 18, 2016 at 4:48 PM

The unit is the kilometer and is consistent with what is done in Lucene.

Glad to hear it. From what I see in org.hibernate.search.spatial.impl.Point.getDistanceTo(double, double), the unit used in Lucene is indeed the KM.
So we only have to add this information to the javadoc of org.hibernate.search.engine.ProjectionConstants.SPATIAL_DISTANCE and org.hibernate.search.elasticsearch.ElasticsearchProjectionConstants.SPATIAL_DISTANCE.

Guillaume SmetAugust 18, 2016 at 4:40 PM

Fixed

Details

Assignee

Reporter

Components

Sprint

Fix versions

Affects versions

Priority

Created August 18, 2016 at 12:21 PM
Updated September 5, 2016 at 6:42 PM
Resolved August 23, 2016 at 7:20 PM