mirror of https://github.com/apache/lucene.git
LUCENE-4978: invert biasContains on query side
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1578889 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
51235d2e2a
commit
1eb6447bcf
|
@ -272,7 +272,7 @@ public class SpatialOpRecursivePrefixTreeTest extends StrategyTestCase {
|
||||||
case 0: queryShape = randomPoint(); break;
|
case 0: queryShape = randomPoint(); break;
|
||||||
case 1:case 2:case 3:
|
case 1:case 2:case 3:
|
||||||
if (!indexedAtLeastOneShapePair) { // avoids ShapePair.relate(ShapePair), which isn't reliable
|
if (!indexedAtLeastOneShapePair) { // avoids ShapePair.relate(ShapePair), which isn't reliable
|
||||||
queryShape = randomShapePairRect(biasContains);
|
queryShape = randomShapePairRect(!biasContains);//invert biasContains for query side
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default: queryShape = randomRectangle();
|
default: queryShape = randomRectangle();
|
||||||
|
|
Loading…
Reference in New Issue