[ 
https://issues.apache.org/jira/browse/LUCENE-7449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15890464#comment-15890464
 ] 

Steve Rowe commented on LUCENE-7449:
------------------------------------

ASF Jenkins found a reproducing seed for the 
{{Test\*RangeFieldQueries.testRandomMedium()}} failures 
[https://builds.apache.org/job/Lucene-Solr-NightlyTests-master/1251/]:

{noformat}
Checking out Revision ec13032a948a29f69d50d41e4859fd38ed5ca377 
(refs/remotes/origin/master)
[...]
   [junit4]   2> NOTE: reproduce with: ant test  
-Dtestcase=TestLongRangeFieldQueries -Dtests.method=testRandomMedium 
-Dtests.seed=372308A94C0C5F3B -Dtests.multiplier=2 -Dtests.nightly=true 
-Dtests.slow=true 
-Dtests.linedocsfile=/home/jenkins/jenkins-slave/workspace/Lucene-Solr-NightlyTests-master/test-data/enwiki.random.lines.txt
 -Dtests.locale=be-BY -Dtests.timezone=America/Indiana/Winamac 
-Dtests.asserts=true -Dtests.file.encoding=UTF-8
   [junit4] FAILURE 7.53s J2 | TestLongRangeFieldQueries.testRandomMedium <<<
   [junit4]    > Throwable #1: java.lang.AssertionError: wrong hit (first of 
possibly more):
   [junit4]    > FAIL (iter 75): id=52600 should not match but did
   [junit4]    >  queryRange=Box(-9223372036854775808 TO 9223372036854775807)
   [junit4]    >  box=Box(2938302894405237373 TO 3114577670663594333)
   [junit4]    >  queryType=CROSSES
   [junit4]    >  deleted?=false
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([372308A94C0C5F3B:8AFD3F010D693C5D]:0)
   [junit4]    >        at 
org.apache.lucene.search.BaseRangeFieldQueryTestCase.verify(BaseRangeFieldQueryTestCase.java:287)
   [junit4]    >        at 
org.apache.lucene.search.BaseRangeFieldQueryTestCase.doTestRandom(BaseRangeFieldQueryTestCase.java:158)
   [junit4]    >        at 
org.apache.lucene.search.BaseRangeFieldQueryTestCase.testRandomMedium(BaseRangeFieldQueryTestCase.java:68)
[...]
   [junit4]   2> NOTE: test params are: codec=Asserting(Lucene70): 
{id=PostingsFormat(name=LuceneFixedGap)}, 
docValues:{id=DocValuesFormat(name=Direct), 
longRangeField=DocValuesFormat(name=Lucene70)}, maxPointsInLeafNode=41, 
maxMBSortInHeap=5.573918837864136, sim=RandomSimilarity(queryNorm=true): {}, 
locale=be-BY, timezone=America/Indiana/Winamac
   [junit4]   2> NOTE: Linux 3.13.0-85-generic amd64/Oracle Corporation 
1.8.0_121 (64-bit)/cpus=4,threads=1,free=136358544,total=484966400
{noformat}
{noformat}
   [junit4]   2> NOTE: reproduce with: ant test  
-Dtestcase=TestIntRangeFieldQueries -Dtests.method=testRandomMedium 
-Dtests.seed=372308A94C0C5F3B -Dtests.multiplier=2 -Dtests.nightly=true 
-Dtests.slow=true 
-Dtests.linedocsfile=/home/jenkins/jenkins-slave/workspace/Lucene-Solr-NightlyTests-master/test-data/enwiki.random.lines.txt
 -Dtests.locale=en-ZA -Dtests.timezone=Europe/Helsinki -Dtests.asserts=true 
-Dtests.file.encoding=UTF-8
   [junit4] FAILURE 5.30s J2 | TestIntRangeFieldQueries.testRandomMedium <<<
   [junit4]    > Throwable #1: java.lang.AssertionError: wrong hit (first of 
possibly more):
   [junit4]    > FAIL (iter 75): id=52600 should not match but did
   [junit4]    >  queryRange=Box(-2147483648 TO 2147483647)
   [junit4]    >  box=Box(-2059116195 TO -410600835)
   [junit4]    >  queryType=CROSSES
   [junit4]    >  deleted?=false
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([372308A94C0C5F3B:8AFD3F010D693C5D]:0)
   [junit4]    >        at 
org.apache.lucene.search.BaseRangeFieldQueryTestCase.verify(BaseRangeFieldQueryTestCase.java:287)
   [junit4]    >        at 
org.apache.lucene.search.BaseRangeFieldQueryTestCase.doTestRandom(BaseRangeFieldQueryTestCase.java:158)
   [junit4]    >        at 
org.apache.lucene.search.BaseRangeFieldQueryTestCase.testRandomMedium(BaseRangeFieldQueryTestCase.java:68)
[...]
   [junit4]   2> NOTE: test params are: codec=Asserting(Lucene70): 
{id=PostingsFormat(name=LuceneVarGapFixedInterval)}, 
docValues:{id=DocValuesFormat(name=Memory), 
intRangeField=DocValuesFormat(name=Asserting)}, maxPointsInLeafNode=1034, 
maxMBSortInHeap=7.960284461233806, sim=RandomSimilarity(queryNorm=true): {}, 
locale=en-ZA, timezone=Europe/Helsinki
   [junit4]   2> NOTE: Linux 3.13.0-85-generic amd64/Oracle Corporation 
1.8.0_121 (64-bit)/cpus=4,threads=1,free=254900272,total=515375104
{noformat}
{noformat}
   [junit4]   2> NOTE: reproduce with: ant test  
-Dtestcase=TestDoubleRangeFieldQueries -Dtests.method=testRandomMedium 
-Dtests.seed=372308A94C0C5F3B -Dtests.multiplier=2 -Dtests.nightly=true 
-Dtests.slow=true 
-Dtests.linedocsfile=/home/jenkins/jenkins-slave/workspace/Lucene-Solr-NightlyTests-master/test-data/enwiki.random.lines.txt
 -Dtests.locale=mk-MK -Dtests.timezone=Japan -Dtests.asserts=true 
-Dtests.file.encoding=UTF-8
   [junit4] FAILURE 6.37s J0 | TestDoubleRangeFieldQueries.testRandomMedium <<<
   [junit4]    > Throwable #1: java.lang.AssertionError: wrong hit (first of 
possibly more):
   [junit4]    > FAIL (iter 75): id=52600 should not match but did
   [junit4]    >  queryRange=Box(-Infinity TO Infinity)
   [junit4]    >  box=Box(-3.7647432892534716E307 TO 5.309615037404456E307)
   [junit4]    >  queryType=CROSSES
   [junit4]    >  deleted?=false
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([372308A94C0C5F3B:8AFD3F010D693C5D]:0)
   [junit4]    >        at 
org.apache.lucene.search.BaseRangeFieldQueryTestCase.verify(BaseRangeFieldQueryTestCase.java:287)
   [junit4]    >        at 
org.apache.lucene.search.BaseRangeFieldQueryTestCase.doTestRandom(BaseRangeFieldQueryTestCase.java:158)
   [junit4]    >        at 
org.apache.lucene.search.BaseRangeFieldQueryTestCase.testRandomMedium(BaseRangeFieldQueryTestCase.java:68)
[...]
   [junit4]   2> NOTE: test params are: codec=Asserting(Lucene70): 
{id=PostingsFormat(name=LuceneVarGapFixedInterval)}, 
docValues:{doubleRangeField=DocValuesFormat(name=Asserting), 
id=DocValuesFormat(name=Lucene70)}, maxPointsInLeafNode=130, 
maxMBSortInHeap=7.386413603500476, sim=RandomSimilarity(queryNorm=false): {}, 
locale=mk-MK, timezone=Japan
   [junit4]   2> NOTE: Linux 3.13.0-85-generic amd64/Oracle Corporation 
1.8.0_121 (64-bit)/cpus=4,threads=1,free=197310064,total=495452160
{noformat}
{noformat}
   [junit4]   2> NOTE: reproduce with: ant test  
-Dtestcase=TestFloatRangeFieldQueries -Dtests.method=testRandomMedium 
-Dtests.seed=372308A94C0C5F3B -Dtests.multiplier=2 -Dtests.nightly=true 
-Dtests.slow=true 
-Dtests.linedocsfile=/home/jenkins/jenkins-slave/workspace/Lucene-Solr-NightlyTests-master/test-data/enwiki.random.lines.txt
 -Dtests.locale=de-CH -Dtests.timezone=SystemV/EST5EDT -Dtests.asserts=true 
-Dtests.file.encoding=UTF-8
   [junit4] FAILURE 3.39s J1 | TestFloatRangeFieldQueries.testRandomMedium <<<
   [junit4]    > Throwable #1: java.lang.AssertionError: wrong hit (first of 
possibly more):
   [junit4]    > FAIL (iter 75): id=52600 should not match but did
   [junit4]    >  queryRange=Box(-Infinity TO Infinity)
   [junit4]    >  box=Box(-1.3110648E38 TO 1.4387144E38)
   [junit4]    >  queryType=CROSSES
   [junit4]    >  deleted?=false
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([372308A94C0C5F3B:8AFD3F010D693C5D]:0)
   [junit4]    >        at 
org.apache.lucene.search.BaseRangeFieldQueryTestCase.verify(BaseRangeFieldQueryTestCase.java:287)
   [junit4]    >        at 
org.apache.lucene.search.BaseRangeFieldQueryTestCase.doTestRandom(BaseRangeFieldQueryTestCase.java:158)
   [junit4]    >        at 
org.apache.lucene.search.BaseRangeFieldQueryTestCase.testRandomMedium(BaseRangeFieldQueryTestCase.java:68)
[...]
   [junit4]   2> NOTE: test params are: codec=Asserting(Lucene70): 
{id=PostingsFormat(name=LuceneFixedGap)}, 
docValues:{floatRangeField=DocValuesFormat(name=Lucene70), 
id=DocValuesFormat(name=Direct)}, maxPointsInLeafNode=1962, 
maxMBSortInHeap=7.732684305995514, sim=RandomSimilarity(queryNorm=false): {}, 
locale=de-CH, timezone=SystemV/EST5EDT
   [junit4]   2> NOTE: Linux 3.13.0-85-generic amd64/Oracle Corporation 
1.8.0_121 (64-bit)/cpus=4,threads=1,free=168969784,total=381157376
{noformat}

> Add CROSSES query support to RangeField
> ---------------------------------------
>
>                 Key: LUCENE-7449
>                 URL: https://issues.apache.org/jira/browse/LUCENE-7449
>             Project: Lucene - Core
>          Issue Type: New Feature
>            Reporter: Nicholas Knize
>            Assignee: Nicholas Knize
>             Fix For: master (7.0), 6.5
>
>         Attachments: LUCENE-7449.patch, LUCENE-7449.patch, LUCENE-7449.patch
>
>
> {{RangeField}} currently supports {{INTERSECTS}}, {{WITHIN}}, and 
> {{CONTAINS}} query behavior. This feature adds support for an explicit 
> {{CROSSES}} query. Unlike {{INTERSECT}} and {{OVERLAP}} queries the 
> {{CROSSES}} query finds any indexed ranges whose interior (within range) 
> intersect the interior AND exterior (outside range) of the query range.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to