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:59:04 UTC
[jira] [Comment Edited] (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 edited comment on LUCENE-6331 at 3/3/15 7:58 PM:
--------------------------------------------------------------
The bug can be checked by adding an 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
was (Author: paul.elschot@xs4all.nl):
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
> Attachments: LUCENE-6331.patch
>
>
> 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