[ https://issues.apache.org/jira/browse/LUCENE-4978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13799415#comment-13799415 ]
David Smiley commented on LUCENE-4978: -------------------------------------- Quoting myself with emphasis: bq. If you want a quick solution that only addresses intersection with a Point query, then you could modify the code I reference in the comment above to *not use cell.getCenter() when queryShape is an instance of Point*. So if you want to *always* avoid this problem (not just for point shapes), simply don't ever use cell.getCenter() regardless of what the query shape is. Always use cell.getShape(). So you're on the right track. You are correct that this issue won't affect indexed data. > Spatial search with point query won't find identical indexed point > ------------------------------------------------------------------ > > Key: LUCENE-4978 > URL: https://issues.apache.org/jira/browse/LUCENE-4978 > Project: Lucene - Core > Issue Type: Bug > Components: modules/spatial > Affects Versions: 4.1 > Reporter: David Smiley > Assignee: David Smiley > Priority: Minor > Fix For: 4.6 > > > Given a document with indexed POINT (10 20), when a search for INTERSECTS( > POINT (10 20)) is issued, no results are returned. > The work-around is to not search with a point shape, use a very small-radius > circle or rectangle. (I'm marking this issue as "minor" because it's easy to > do this). > An unstated objective of the PrefixTree/grid approximation is that no matter > what precision you use, an intersects query will find all true-positives. > Due to approximations, it may also find some close false-positives. But in > the case above, that unstated promise is violated. But it can also happen > for query shapes other than points which do in fact barely enclose the point > given at index time yet the indexed point is in-effect shifted to the center > point of a cell which could be outside the query shape, and ultimately > leading to a false-negative. -- This message was sent by Atlassian JIRA (v6.1#6144) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org