LUCENE-5648: Bug fix for detecting Contains relation when on the edge.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1601777 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David Wayne Smiley 2014-06-10 21:28:46 +00:00
parent 1b049e26ac
commit 2346147429
1 changed files with 1 additions and 1 deletions

View File

@ -744,7 +744,7 @@ public abstract class NumberRangePrefixTree extends SpatialPrefixTree {
return SpatialRelation.INTERSECTS; return SpatialRelation.INTERSECTS;
} }
for (;nrMaxLevel < getLevel(); nrMaxLevel++) { for (;nrMaxLevel < getLevel(); nrMaxLevel++) {
if (getValAtLevel(nrMaxLevel + 1) != getNumSubCells(getLVAtLevel(nrMaxLevel-1)) - 1) if (getValAtLevel(nrMaxLevel + 1) != getNumSubCells(getLVAtLevel(nrMaxLevel)) - 1)
return SpatialRelation.INTERSECTS; return SpatialRelation.INTERSECTS;
} }
return SpatialRelation.CONTAINS; return SpatialRelation.CONTAINS;