|
Ok I have been looking at your entity.
You should not be using both (@Spatial+@Longitude+@Latitude) AND @FieldBridge(impl = SpatialFieldBridgeByHash.class) at the same time on your entity.
Have a look in the test classes of Hibernate search for spatial. Either you have class UserRange which use S+L+L OR you have class POI that uses the FieldBridge. When using the S+L+L triple annotation the name of the hidden fields added for indexation are prefixed by Spatial.COORDINATES_DEFAULT_FIELD (so actually "_hibernate_default_coordinates"). When using the FieldBridge this map to either the name of the method implementing the @Coordinates interface (getLocation => "location").
So in addittion to my previous comment I think you should remove all the
@Field(store = Store.YES, index = Index.YES, analyze = Analyze.NO) + @FieldBridge(impl = SpatialFieldBridgeByHash.class) + @Embedded + public Coordinates getLocation() {
section in your commit in Infinispan.
This is not needed.
|