[
https://issues.apache.org/jira/browse/LUCENE-6001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14165703#comment-14165703
]
Robert Muir commented on LUCENE-6001:
-------------------------------------
The issue could be more problematic really. In general most of these methods
(cost(), getChildren(), etc) are currently only being called before consuming
the iterator.
But DrillSideWays first nextDoc()'s all of its subs, _then_ calls cost().
First we should clarify/define, when it is ok to call these methods, and what
the semantics are supposed to be if you can call it "after consuming" (is it ok
to call it at any time? what about after it returns NO_MORE_DOCS?).
Then, depending on that, we just have to fix and add direct tests against our
scorers for this, because otherwise problems will continue to happen, since
core scorers are generally just checking this up-front and wont find bugs in
the current test suite. Maybe improving AssertingScorer to do this can help.
> DrillSideways throws NullPointerException for some searches
> -----------------------------------------------------------
>
> Key: LUCENE-6001
> URL: https://issues.apache.org/jira/browse/LUCENE-6001
> Project: Lucene - Core
> Issue Type: Bug
> Components: modules/facet
> Affects Versions: 4.10.1
> Reporter: Dragan Jotanovic
>
> For some DrillSideways searches I get NullPointerException.
> I have tracked the problem to DrillSidewaysScorer class, on line 126 in
> DrillSidewaysScorer.java:
> long baseQueryCost = baseScorer.cost();
> On some of my index segments, this call throws NullPoinerException.
> "baseScorer" is instance of ReqExclScorer.
> In ReqExclScorer.java:
> public long cost() {
> return reqScorer.cost();
> }
> throws NullPointerException because reqScorer is null.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]