[
https://issues.apache.org/jira/browse/LUCENE-6001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14165728#comment-14165728
]
Robert Muir commented on LUCENE-6001:
-------------------------------------
In this specific case, DrillsideWays calls cost() after nextDoc() already
returned NO_MORE_DOCS. This is why ReqExclScorer sets req to null.
I don't know if DrillSideways is doing this because its "one ahead" on its
scorers all the time and looks at docID() [maybe] but I am a little afraid to
just add the NO_MORE_DOCS check to it... on the other hand it would suck a
little to have if (exhausted) return 0 in every single scorers cost impl, but
maybe we should do that instead?
> 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]