lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joel Bernstein (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-5682) NPE in QueryRescorer when Scorer is null
Date Fri, 23 May 2014 12:08:01 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-5682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14007079#comment-14007079
] 

Joel Bernstein commented on LUCENE-5682:
----------------------------------------

Yes, thanks for resolving.

> 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
>             Fix For: 4.9, 5.0
>
>         Attachments: LUCENE-5682.patch, LUCENE-5682.patch, 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message