You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by kw...@apache.org on 2017/08/25 15:44:20 UTC

lucene-solr:branch_6x: LUCENE-7941: Clarify contract for intersects() method.

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_6x 665d223c6 -> d077f8904


LUCENE-7941: Clarify contract for intersects() method.


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/d077f890
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/d077f890
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/d077f890

Branch: refs/heads/branch_6x
Commit: d077f89043697aa435b3359ed0c9b2acdfad6a76
Parents: 665d223
Author: Karl Wright <Da...@gmail.com>
Authored: Fri Aug 25 11:42:29 2017 -0400
Committer: Karl Wright <Da...@gmail.com>
Committed: Fri Aug 25 11:44:10 2017 -0400

----------------------------------------------------------------------
 .../src/java/org/apache/lucene/spatial3d/geom/GeoShape.java       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/d077f890/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoShape.java
----------------------------------------------------------------------
diff --git a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoShape.java b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoShape.java
index 98283cd..bc2d8f9 100755
--- a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoShape.java
+++ b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoShape.java
@@ -35,7 +35,8 @@ public interface GeoShape extends Membership, PlanetObject {
 
   /**
    * Assess whether a plane, within the provided bounds, intersects
-   * with the shape.  Note well that this method is allowed to return "true"
+   * with the shape's edges.  Any overlap, even a single point, is considered to be an
+   * intersection.  Note well that this method is allowed to return "true"
    * if there are internal edges of a composite shape which intersect the plane.
    * Doing this can cause getRelationship() for most GeoBBox shapes to return
    * OVERLAPS rather than the more correct CONTAINS, but that cannot be