Spatial Search with distance projection is not returning all results

Description

I have created a class with fields annotated with @Latitude and @Longitude:

https://github.com/infinispan/infinispan/blob/master/integrationtests/as-lucene-directory/src/test/java/org/infinispan/test/integration/as/wildfly/model/Member.java

This method is used to perform a spatial search:

This method is used to perform a spatial search and also uses a projection to return the distance each member is from the specified longitude and latitude:

Then created objects that have the latitude and longitude set. When I search using a search radius that should include multiple members, the first method returns both members. However when using the same parameters, the second method only returns one member.

Environment

None

Assignee

Nicolas Helleringer

Reporter

Alan Field

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Affects versions

Priority

Major
Configure