Instead of using the @Latitude and @Longitude annotations you can choose to implement the org.hibernate.search.spatial.Coordinates interface.
So you should not use annotations AND interface at the same time for the same spatial pseudo field.
I actually does not understand where your problem is : is your code working or not ?
Looking at your test case, I seems to me that the @Longitude(of="location") and @Latitude(of="location") are not required as they refer to a "location" named spatial pseudo field which is not declared in a @Spatial annotation.
Thus, your code should work as the coordinates interface match the default named @Spatial annotation at class level.
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
Just at the beginning of 9.1.3 you have :
So you should not use annotations AND interface at the same time for the same spatial pseudo field.
I actually does not understand where your problem is : is your code working or not ?
Looking at your test case, I seems to me that the @Longitude(of="location") and @Latitude(of="location") are not required as they refer to a "location" named spatial pseudo field which is not declared in a @Spatial annotation.
Thus, your code should work as the coordinates interface match the default named @Spatial annotation at class level.