mirror of https://github.com/apache/lucene.git
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:
parent
1b049e26ac
commit
2346147429
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue