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

Robert Muir commented on LUCENE-6308:
-------------------------------------

By the way, at least i think this exercise may have found a bug. Now that new 
span logic is used everywhere, I hit some test failures in lucene/queryparser 
that look like this:
{noformat}
   [junit4] Suite: org.apache.lucene.queryparser.surround.query.Test03Distance
   [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=Test03Distance 
-Dtests.method=test3Example01 -Dtests.seed=87854C52BC77D8E3 -Dtests.locale=mt 
-Dtests.timezone=PRC -Dtests.asserts=true -Dtests.file.encoding=UTF-8
   [junit4] ERROR   0.09s J2 | Test03Distance.test3Example01 <<<
   [junit4]    > Throwable #1: java.lang.NullPointerException
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([87854C52BC77D8E3:7DCE4F0323A56FA5]:0)
   [junit4]    >        at 
org.apache.lucene.search.spans.NearSpansUnordered.startPosition(NearSpansUnordered.java:213)
   [junit4]    >        at 
org.apache.lucene.search.spans.SpanOrQuery$SpanQueue.lessThan(SpanOrQuery.java:155)
   [junit4]    >        at 
org.apache.lucene.search.spans.SpanOrQuery$SpanQueue.lessThan(SpanOrQuery.java:147)
   [junit4]    >        at 
org.apache.lucene.util.PriorityQueue.upHeap(PriorityQueue.java:258)
   [junit4]    >        at 
org.apache.lucene.util.PriorityQueue.add(PriorityQueue.java:135)
   [junit4]    >        at 
org.apache.lucene.search.spans.SpanOrQuery.getSpans(SpanOrQuery.java:187)
   [junit4]    >        at 
org.apache.lucene.search.spans.SpanNearQuery.getSpans(SpanNearQuery.java:128)
   [junit4]    >        at 
org.apache.lucene.search.spans.SpanNearQuery.getSpans(SpanNearQuery.java:128)
   [junit4]    >        at 
org.apache.lucene.search.spans.SpanWeight.scorer(SpanWeight.java:92)
   [junit4]    >        at 
org.apache.lucene.search.Weight.bulkScorer(Weight.java:127)
   [junit4]    >        at 
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:540)
   [junit4]    >        at 
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:347)
   [junit4]    >        at 
org.apache.lucene.queryparser.surround.query.BooleanQueryTst.doTest(BooleanQueryTst.java:127)
   [junit4]    >        at 
org.apache.lucene.queryparser.surround.query.Test03Distance.distanceTst(Test03Distance.java:76)
   [junit4]    >        at 
org.apache.lucene.queryparser.surround.query.Test03Distance.distanceTest3(Test03Distance.java:242)
   [junit4]    >        at 
org.apache.lucene.queryparser.surround.query.Test03Distance.test3Example01(Test03Distance.java:247)
   [junit4]    >        at java.lang.Thread.run(Thread.java:745)
{noformat}

> SpansEnum, deprecate Spans
> --------------------------
>
>                 Key: LUCENE-6308
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6308
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/search
>    Affects Versions: Trunk
>            Reporter: Paul Elschot
>            Priority: Minor
>         Attachments: LUCENE-6308-changeapi.patch, LUCENE-6308.patch, 
> LUCENE-6308.patch, LUCENE-6308.patch, LUCENE-6308.patch, LUCENE-6308.patch, 
> LUCENE-6308.patch
>
>
> An alternative for Spans that looks more like PositionsEnum and adds two 
> phase doc id iteration



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to