craigtaverner opened a new issue, #12020:
URL: https://github.com/apache/lucene/issues/12020

   ### Description
   
   When performing a search using a shape geometry query of relation type 
`QueryRelation.CONTAINS`, it is possible to get a false positive when two 
geometries intersect, but neither actually contains the other. This happens if 
the indexed geometry is a polygon that is so flat that one of its triangles is 
simplified to a single line segment. The bug is that the line segment currently 
records whether it is part of the external polygon by taking that knowledge 
from first line segment of the triangle, not necessarily the part of the 
triangle being retained. This first line segment could be an internal line 
(part of the triangle, but not the polygon). The simplification code should 
instead take this knowledge from a line segment that is not being collapsed by 
the simplification. The consequence of this bug occur later during the contains 
search when the search query deduces that the geometry is contained because the 
polygon is not closed. The search does not realise it intersects an outer
  line of the polygon because that line is not correctly marked as outer.
   
   ### Version and environment details
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to