[
https://issues.apache.org/jira/browse/LUCENE-7449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15886152#comment-15886152
]
Steve Rowe commented on LUCENE-7449:
------------------------------------
My Jenkins found a reproducing branch_6x seed for a
{{TestLongRangeFieldQueries.testBasics()}} failure:
{noformat}
[junit4] 2> NOTE: reproduce with: ant test
-Dtestcase=TestLongRangeFieldQueries -Dtests.method=testBasics
-Dtests.seed=470D5069FEB53A50 -Dtests.multiplier=2 -Dtests.nightly=true
-Dtests.slow=true
-Dtests.linedocsfile=/home/jenkins/lucene-data/enwiki.random.lines.txt
-Dtests.locale=es-PE -Dtests.timezone=PST8PDT -Dtests.asserts=true
-Dtests.file.encoding=UTF-8
[junit4] FAILURE 0.01s J0 | TestLongRangeFieldQueries.testBasics <<<
[junit4] > Throwable #1: java.lang.AssertionError: expected:<4> but
was:<5>
[junit4] > at
__randomizedtesting.SeedInfo.seed([470D5069FEB53A50:7AD5FE45C65B6420]:0)
[junit4] > at
org.apache.lucene.search.TestLongRangeFieldQueries.testBasics(TestLongRangeFieldQueries.java:135)
[...]
[junit4] 2> NOTE: test params are: codec=Asserting(Lucene62):
{id=FSTOrd50}, docValues:{id=DocValuesFormat(name=Direct),
longRangeField=DocValuesFormat(name=Lucene54)}, maxPointsInLeafNode=1625,
maxMBSortInHeap=5.649688217301301,
sim=RandomSimilarity(queryNorm=false,coord=no): {}, locale=es-PE,
timezone=PST8PDT
[junit4] 2> NOTE: Linux 4.1.0-custom2-amd64 amd64/Oracle Corporation
1.8.0_77 (64-bit)/cpus=16,threads=1,free=313754016,total=499646464
{noformat}
This is due to this issue's addition of CROSSES query support - here's the
source code line pointed to by the stack trace:
{code:java|title=TestLongRangeFieldQueries.java}
135: assertEquals(4,
searcher.count(LongRangeField.newCrossesQuery(FIELD_NAME,
136: new long[] {-11, -15}, new long[] {15, 20})));
{code}
> 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]