[
https://issues.apache.org/jira/browse/LUCENE-5062?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13685011#comment-13685011
]
David Smiley commented on LUCENE-5062:
--------------------------------------
This test demonstrates the problem (place in SpatialOpRecursivePrefixTreeTest):
{code}
public void testContainsPairOverlap() throws IOException {
mySetup(7);
adoc("0", new ShapePair(ctx.makeRectangle(60, 70, 35, 63),
ctx.makeRectangle(10, 60, 35, 63), true));
commit();
Query query = strategy.makeQuery(new SpatialArgs(SpatialOperation.Contains,
ctx.makeRectangle(50, 65, 40, 60)));
SearchResults searchResults = executeQuery(query, 1);
assertEquals(1, searchResults.numFound);
}
{code}
> Spatial CONTAINS is sometimes incorrect for overlapped indexed shapes
> ---------------------------------------------------------------------
>
> Key: LUCENE-5062
> URL: https://issues.apache.org/jira/browse/LUCENE-5062
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/spatial
> Affects Versions: 4.3
> Reporter: David Smiley
> Assignee: David Smiley
>
> If the spatial data for a document is comprised of multiple overlapping or
> adjacent parts, it _might_ fail to match a query shape when doing the
> CONTAINS predicate when the sum of those shapes contain the query shape but
> none do individually.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]