Guillaume Smet
commented
on
HSEARCH-2326
Re: The default unit for the spatial distance projection in ES is not documented and may not be in line with Lucene's
The unit is the kilometer and is consistent with what is done in Lucene.
See:
https://github.com/hibernate/hibernate-search/blob/master/elasticsearch/src/main/java/org/hibernate/search/elasticsearch/impl/ElasticsearchHSQueryImpl.java#L492
: we use arcDistanceInKm
https://github.com/hibernate/hibernate-search/blob/master/elasticsearch/src/main/java/org/hibernate/search/elasticsearch/client/impl/DistanceSort.java#L46
: we clearly specific the unit of the distance returned in the results by the sort.
HTH
Add Comment
This message was sent by Atlassian JIRA
(v1000.253.3#100011-
sha1:6da8fdb
)