You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Paul Elschot (JIRA)" <ji...@apache.org> on 2015/03/03 20:58:07 UTC

[jira] [Commented] (LUCENE-6331) Spans for SpanOrQuery can return 0 cost

    [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org