-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: SpatialHelper "getSpatialHashCellsIds" - lost bounding boxes
PostPosted: Wed Oct 07, 2015 5:44 am 
Beginner
Beginner

Joined: Wed Aug 06, 2014 10:53 am
Posts: 30
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


Top
 Profile  
 
 Post subject: Re: SpatialHelper "getSpatialHashCellsIds" - lost bounding boxes
PostPosted: Tue Oct 13, 2015 7:58 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi darioc,
there are some issues which might be related which were fixed recently; especially HSEARCH-1918 comes to mind.

Could you try Hibernate Search 5.4.0.Final or - ideally - 5.5.0.Final ?

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.