That need to get the .within implemented at spatial() level and its a bit too tricky for me I fear :s
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Updated with handling of default naming for @Spatial
@Spatials({ @Spatial, @Spatial(name="work", spatialMode = SpatialMode.GRID) }) @Entity @Indexed public class UserEx { @Id Integer id; @Latitude Double homeLatitude; @Longitude Double homeLongitude; @Latitude(spatialName="work") Double workLatitude; @Longitude(spatialName="work") Double workLongitude;I would like some help for the corresponding DSL change to avoid :
org.apache.lucene.search.Query luceneQuery2 = builder.spatial().onCoordinates( UserRange.class.getName() )
.within( 51, Unit.KM ).ofLatitude( centerLatitude ).andLongitude( centerLongitude ).createQuery();
That need to get the .within implemented at spatial() level and its a bit too tricky for me I fear :s