Hi,
I have serious problem with the getSpatialHashCellsIds function of the org.hibernate.search.spatial.impl.SpatialHelper class.
The expected result for this function is not correct, if you try to get the result using the follows parameters:
lowerLeft: -90,-180
upperRight: +90,+180
spatialHashLevel: 5
According the documentation (https://docs.jboss.org/hibernate/search/5.0/reference/en-US/html/spatial.html#spatial-behind-curtain) I expect to receive 1024 bounding boxes, but it returns only 66 boxes!
Is there a reason?
This is my sample code:
Code:
Point bottomLeft = Point.fromDegreesInclusive(-90, -180);
Point topRight = Point.fromDegreesInclusive(90, 180);
List<String> boxIdsFromHBSearchL0 = SpatialHelper.getSpatialHashCellsIds(bottomLeft, topRight, 0); //Size = 4 => Should be 1 ?
List<String> boxIdsFromHBSearchL1 = SpatialHelper.getSpatialHashCellsIds(bottomLeft, topRight, 1); //Size = 6 => Should be 4 ?
List<String> boxIdsFromHBSearchL2 = SpatialHelper.getSpatialHashCellsIds(bottomLeft, topRight, 2); //Size = 10 => Should be 16 ?
List<String> boxIdsFromHBSearchL3 = SpatialHelper.getSpatialHashCellsIds(bottomLeft, topRight, 3); //Size = 18 => Should be 64 ?
List<String> boxIdsFromHBSearchL4 = SpatialHelper.getSpatialHashCellsIds(bottomLeft, topRight, 4); //Size = 34 => Should be 256 ?
List<String> boxIdsFromHBSearchL5 = SpatialHelper.getSpatialHashCellsIds(bottomLeft, topRight, 5); //Size = 66 => Should be 1024 ?
I'm using ..
Hibernate Search version 5.0.1.Final
Hibernate version 4.3.11.Final
Spring version 4.1.5.RELEASE