[hibernate-issues] [JIRA] (HSEARCH-3275) Search 6 groundwork - Move to a stable implementation of Lucene spatial support

Yoann Rodière (JIRA) jira at hibernate.atlassian.net
Wed May 13 04:37:04 EDT 2020


Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b ) *commented* on HSEARCH-3275 ( https://hibernate.atlassian.net/browse/HSEARCH-3275?atlOrigin=eyJpIjoiMjNkZWE0MGIyZDY5NGNkOTgyOWRiYWQ2MzhlNDNiNGMiLCJwIjoiaiJ9 )

Re: Search 6 groundwork - Move to a stable implementation of Lucene spatial support ( https://hibernate.atlassian.net/browse/HSEARCH-3275?atlOrigin=eyJpIjoiMjNkZWE0MGIyZDY5NGNkOTgyOWRiYWQ2MzhlNDNiNGMiLCJwIjoiaiJ9 )

The context has changed and made most of this ticket obsolete.

First, LatLonPoint and related classes in Lucene are now in the core, not in the sandbox ( https://issues.apache.org/jira/browse/LUCENE-7314 ). They are thus supported to the same extent as other core features.

Second, the precision of LatLonPoint seems largely sufficient for most use cases. From the javadoc of org.apache.lucene.document.LatLonPoint :

> 
> 
> 
> Values are indexed with some loss of precision from the
> 
> 

> 
> 
> 
> original double values (4.190951585769653E-8 for the latitude component
> 
> 

> 
> 
> 
> and 8.381903171539307E-8 for longitude).
> 
> 

In the worst case, for latitude, this gives a precision near the equator of 40,075.017/360*8.381903171539307*10^-8 = 9.33 cm, or around 3.7 inches. I'd say this is enough to find the location of a pizza joint or a rental bike, or for most use cases we're likely to encounter.

So, let's just add some documentation about the precision, that should be enough.

( https://hibernate.atlassian.net/browse/HSEARCH-3275#add-comment?atlOrigin=eyJpIjoiMjNkZWE0MGIyZDY5NGNkOTgyOWRiYWQ2MzhlNDNiNGMiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HSEARCH-3275#add-comment?atlOrigin=eyJpIjoiMjNkZWE0MGIyZDY5NGNkOTgyOWRiYWQ2MzhlNDNiNGMiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100126- sha1:dd08494 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200513/47715399/attachment.html 


More information about the hibernate-issues mailing list