Search Distance Projection doesn't work as expected with some sets of coordinates

Description

Hi.

The distance projection (and the distance computation in general) does not work as expected when using data that is scattered around.

In the following test case i use some coordinates from Madrid, some New York and Aachen in Germay. I'm looking for stuff in Aachen.

Search finds it but the distance is wrong.

If i leave the first 6 coordinates, everything works as expected.

Thanks for looking at it:

Environment

JPA, Java 7, Hibernate 4.1.7, MySQL

Activity

Show:
Nicolas Helleringer
October 19, 2012, 12:32 AM

I ll look into it.

Michael Simons
October 19, 2012, 11:07 AM

Thanks. Just drop me a line if you need more information or help.

Nicolas Helleringer
October 19, 2012, 11:17 AM

The fixing pull request is allready up =)

Michael Simons
October 19, 2012, 11:22 AM

I saw it, thank you for your work!

FYI: I'm using hibernate search based on JPA entities on http://dailyfratze.de and i'm looking forward to search for images (and also archived tweets) based on their location. It's already working quite well (Beta 1) and the new features are definitely essential.

Maybe i'll open the search to public as well.

Nicolas Helleringer
October 19, 2012, 11:33 AM

Very happy to see it is usefull and used !!!

Assignee

Nicolas Helleringer

Reporter

Michael Simons

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Fix versions

Affects versions

Priority

Major
Configure