While working in CONTAINS support for shapes I came across errors in XYShape when querying with a bounding box. After looking to the errors it is clear that the issue is that XYRectangle2D is working in the encoding space. In this case, XYShape encoding is not lineal and shapes loose their spatial relationship.
XYRectangle2D should work then on the float space.
Legacy Jira details
LUCENE-8973 by Ignacio Vera (@iverase) on Sep 10 2019, resolved Dec 11 2019
Environment:
While working in CONTAINS support for shapes I came across errors in XYShape when querying with a bounding box. After looking to the errors it is clear that the issue is that XYRectangle2D is working in the encoding space. In this case, XYShape encoding is not lineal and shapes loose their spatial relationship.
XYRectangle2D should work then on the float space.
Legacy Jira details
LUCENE-8973 by Ignacio Vera (@iverase) on Sep 10 2019, resolved Dec 11 2019 Environment: