lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-10383) NPE on debug query in SOLR UI - LTR OriginalScoreFeature
Date Mon, 03 Apr 2017 12:50:41 GMT

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

ASF subversion and git services commented on SOLR-10383:
--------------------------------------------------------

Commit cf7f0c0670b2b670afb28fc93a72901d22473f7a in lucene-solr's branch refs/heads/branch_6_5
from [~cpoerschke]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=cf7f0c0 ]

SOLR-10383: reduce code duplication in TestOriginalScoreFeature


> NPE on debug query in SOLR UI - LTR OriginalScoreFeature
> --------------------------------------------------------
>
>                 Key: SOLR-10383
>                 URL: https://issues.apache.org/jira/browse/SOLR-10383
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 6.4.2
>            Reporter: Vitezslav Zak
>            Assignee: Christine Poerschke
>         Attachments: SOLR-10383.patch, SOLR-10383.patch, SOLR-10383-prep.patch
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> Hi,
> there is a NPE if I want to debug query in SOLR UI.
> I'm using LTR for reranking result.
> My features:
> {code}
> {
>   "initArgs":{},
>   "initializedOn":"2017-03-29T05:32:52.160Z",
>   "updatedSinceInit":"2017-03-29T05:56:28.721Z",
>   "managedList":[
>     {
>       "name":"documentRecency",
>       "class":"org.apache.solr.ltr.feature.SolrFeature",
>       "params":{"q":"{!func}recip( ms(NOW,initial_release_date), 3.16e-11, 1, 1)"},
>       "store":"_DEFAULT_"},
>     {
>       "name":"niceness",
>       "class":"org.apache.solr.ltr.feature.SolrFeature",
>       "params":{"fq":["{!func}recip(niceness, 0.1, 1, 1)"]},
>       "store":"_DEFAULT_"},
>     {
>       "name":"originalScore",
>       "class":"org.apache.solr.ltr.feature.OriginalScoreFeature",
>       "params":null,
>       "store":"_DEFAULT_"}]}
> {code}
> My model:
> {code}
> {
>   "initArgs":{},
>   "initializedOn":"2017-03-29T05:32:52.167Z",
>   "updatedSinceInit":"2017-03-29T05:54:26.100Z",
>   "managedList":[{
>       "name":"myModel",
>       "class":"org.apache.solr.ltr.model.LinearModel",
>       "store":"_DEFAULT_",
>       "features":[
>         {
>           "name":"documentRecency",
>           "norm":{"class":"org.apache.solr.ltr.norm.IdentityNormalizer"}},
>         {
>           "name":"niceness",
>           "norm":{"class":"org.apache.solr.ltr.norm.IdentityNormalizer"}},
>         {
>           "name":"originalScore",
>           "norm":{"class":"org.apache.solr.ltr.norm.IdentityNormalizer"}}],
>       "params":{"weights":{
>           "documentRecency":0.1,
>           "niceness":1.0,
>           "originalScore":0.5}}}]}
> {code}
> NPE occurs in this method, where docInfo is null.
> {code:title=OriginalScoreFeature.java}
> @Override
>       public float score() throws IOException {
>         // This is done to improve the speed of feature extraction. Since this
>         // was already scored in step 1
>         // we shouldn't need to calc original score again.
>         final DocInfo docInfo = getDocInfo();
>         return (docInfo.hasOriginalDocScore() ? docInfo.getOriginalDocScore() : originalScorer.score());
>       }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message