You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Ignacio Vera (Jira)" <ji...@apache.org> on 2020/11/23 08:44:00 UTC

[jira] [Resolved] (LUCENE-9595) Component2D#withinPoint logic is inconsistent with ShapeQuery logic

     [ https://issues.apache.org/jira/browse/LUCENE-9595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ignacio Vera resolved LUCENE-9595.
----------------------------------
    Fix Version/s: 8.8
         Assignee: Ignacio Vera
       Resolution: Fixed

> Component2D#withinPoint logic is inconsistent with ShapeQuery logic
> -------------------------------------------------------------------
>
>                 Key: LUCENE-9595
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9595
>             Project: Lucene - Core
>          Issue Type: Bug
>            Reporter: Ignacio Vera
>            Assignee: Ignacio Vera
>            Priority: Major
>             Fix For: 8.8
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The logic of ShapeQuery for contains assumes that if a branch of the BKD tree is inside of the  shape query, the all documents in that branch are excluded from the result. On the other hand, Component2D#withinPoint implementation, eg. Polygon2D,  ignores points even when the point is inside the query.
> That might lead to inconsistencies in edges cases with geometry collections. The proposal here is to keep the logic of the shapeQuery and therefore contains logic will only return true if the query shape is inside a geometry and it does not intersects with any other geometry belonging to the same document. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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