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:
JPA, Java 7, Hibernate 4.1.7, MySQL
I ll look into it.
Thanks. Just drop me a line if you need more information or help.
The fixing pull request is allready up =)
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.
Very happy to see it is usefull and used !!!