[
https://issues.apache.org/jira/browse/LUCENE-6331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14345631#comment-14345631
]
Paul Elschot commented on LUCENE-6331:
--------------------------------------
The bug can be checked by addingan assert queue != null to the cost() function
at SpanOrQuery.getSpans(). This test case then fails:
ant test -Dtestcase=TestSpanMultiTermQueryWrapper
-Dtests.method=testNoSuchMultiTermsInOr -Dtests.seed=D2F850A1F724092F
> Spans for SpanOrQuery can return 0 cost
> ---------------------------------------
>
> Key: LUCENE-6331
> URL: https://issues.apache.org/jira/browse/LUCENE-6331
> Project: Lucene - Core
> Issue Type: Bug
> Components: core/search
> Reporter: Paul Elschot
>
> On the Spans for SpanOrQuery, cost() can be called before the span queue is
> initialized, and the total cost is only computed when the queue is
> initialized.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]