[ https://issues.apache.org/jira/browse/LUCENE-6331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14345636#comment-14345636 ]
Paul Elschot commented on LUCENE-6331: -------------------------------------- Actually, for that test case, the currently returned 0 may be correct, so I'm not sure that therereally is a bug. > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org