[
https://issues.apache.org/jira/browse/LUCENE-5682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14001687#comment-14001687
]
Michael McCandless commented on LUCENE-5682:
--------------------------------------------
Thanks Joel!
bq. I didn't follow through with a combine is this situation as you did on a
miss hit, but we could if you want to.
I think we should? So subclass doesn't see these two cases as any different?
Ie, in both cases, the 2nd pass Query didn't match the doc.
> NPE in QueryRescorer when Scorer is null
> ----------------------------------------
>
> Key: LUCENE-5682
> URL: https://issues.apache.org/jira/browse/LUCENE-5682
> Project: Lucene - Core
> Issue Type: Bug
> Affects Versions: 4.8
> Reporter: Joel Bernstein
> Assignee: Joel Bernstein
> Attachments: LUCENE-5682.patch
>
>
> While testing out the QueryRescorer I was getting an NPE on the scorer when
> using a TermQuery as the rescore query. Looks like a TermQuery will return a
> null Scorer if the term is not present in the index segment.
> Caused by: java.lang.NullPointerException
> [junit4] > at
> org.apache.lucene.search.QueryRescorer.rescore(QueryRescorer.java:89)
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]