[jira] [Commented] (SOLR-10383) NPE on debug query in SOLR UI - LTR OriginalScoreFeature
[ https://issues.apache.org/jira/browse/SOLR-10383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15954999#comment-15954999 ] Vitezslav Zak commented on SOLR-10383: -- Nice work, thank you too. Best > 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.1, 6.5, 6.4.0, 6.4.2 >Reporter: Vitezslav Zak >Assignee: Christine Poerschke > Fix For: master (7.0), 6x, 6.5.1 > > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Comment Edited] (SOLR-10383) NPE on debug query in SOLR UI - LTR OriginalScoreFeature
[ https://issues.apache.org/jira/browse/SOLR-10383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15948899#comment-15948899 ] Vitezslav Zak edited comment on SOLR-10383 at 3/30/17 11:42 AM: Hi Christine, I try run test scenario as you said. I run example techproducts. I add features and model by curl commands. {code} curl -XPUT 'http://localhost:8983/solr/techproducts/schema/feature-store' --data-binary "@/home/zaky/prac/myFeatures.json" -H 'Content-type:application/json' curl -XPUT 'http://localhost:8983/solr/techproducts/schema/model-store' --data-binary "@/home/zaky/prac/myModel.json" -H 'Content-type:application/json' {code} Features: {code} [ { "name" : "originalScore", "class" : "org.apache.solr.ltr.feature.OriginalScoreFeature", "params" : {} } ] {code} Model: {code} { "class" : "org.apache.solr.ltr.model.LinearModel", "name" : "myModel", "features" : [ { "name" : "originalScore" } ], "params" : { "weights" : { "originalScore" : 1.0 } } } {code} Then I go to the Solr UI/core/Query - run a query with debugQuery And at the end of results, there is a error. I ran this url too and there is at the end error too: [http://localhost:8983/solr/techproducts/select?debugQuery=on=on=*:*={!ltr%20model=myModel%20reRankDocs=100}=json] was (Author: zaky.vit): Hi Christine, I try run test scenario as you said. I run example techproducts. I add features and model by curl commands. {code} curl -XPUT 'http://localhost:8983/solr/techproducts/schema/feature-store' --data-binary "@/home/zaky/prac/myFeatures.json" -H 'Content-type:application/json' curl -XPUT 'http://localhost:8983/solr/techproducts/schema/model-store' --data-binary "@/home/zaky/prac/myModel.json" -H 'Content-type:application/json' {code} Features: {code} [ { "name" : "originalScore", "class" : "org.apache.solr.ltr.feature.OriginalScoreFeature", "params" : {} } ] {code} Model: {code} { "class" : "org.apache.solr.ltr.model.LinearModel", "name" : "myModel", "features" : [ { "name" : "originalScore" } ], "params" : { "weights" : { "originalScore" : 1.0 } } } {code} Then I go to the Solr UI/core/Query - run a query with debugQuery And at the end of results, there is a error. I ran this url too and there is at the end error too: http://localhost:8983/solr/techproducts/select?debugQuery=on=on=*:*={!ltr%20model=myModel%20reRankDocs=100}=json > 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 > 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
[jira] [Comment Edited] (SOLR-10383) NPE on debug query in SOLR UI - LTR OriginalScoreFeature
[ https://issues.apache.org/jira/browse/SOLR-10383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15948899#comment-15948899 ] Vitezslav Zak edited comment on SOLR-10383 at 3/30/17 11:42 AM: Hi Christine, I try run test scenario as you said. I run example techproducts. I add features and model by curl commands. {code} curl -XPUT 'http://localhost:8983/solr/techproducts/schema/feature-store' --data-binary "@/home/zaky/prac/myFeatures.json" -H 'Content-type:application/json' curl -XPUT 'http://localhost:8983/solr/techproducts/schema/model-store' --data-binary "@/home/zaky/prac/myModel.json" -H 'Content-type:application/json' {code} Features: {code} [ { "name" : "originalScore", "class" : "org.apache.solr.ltr.feature.OriginalScoreFeature", "params" : {} } ] {code} Model: {code} { "class" : "org.apache.solr.ltr.model.LinearModel", "name" : "myModel", "features" : [ { "name" : "originalScore" } ], "params" : { "weights" : { "originalScore" : 1.0 } } } {code} Then I go to the Solr UI/core/Query - run a query with debugQuery And at the end of results, there is a error. I ran this url too and there is at the end error too: http://localhost:8983/solr/techproducts/select?debugQuery=on=on=*:*={!ltr%20model=myModel%20reRankDocs=100}=json was (Author: zaky.vit): Hi Christine, I try run test scenario as you said. I run example techproducts. I add features and model by curl commands. {code} curl -XPUT 'http://localhost:8983/solr/techproducts/schema/feature-store' --data-binary "@/home/zaky/prac/myFeatures.json" -H 'Content-type:application/json' curl -XPUT 'http://localhost:8983/solr/techproducts/schema/model-store' --data-binary "@/home/zaky/prac/myModel.json" -H 'Content-type:application/json' {code} Features: {code} [ { "name" : "originalScore", "class" : "org.apache.solr.ltr.feature.OriginalScoreFeature", "params" : {} } ] {code} Model: {code} { "class" : "org.apache.solr.ltr.model.LinearModel", "name" : "myModel", "features" : [ { "name" : "originalScore" } ], "params" : { "weights" : { "originalScore" : 1.0 } } } {code} Then I go to the Solr UI/core/Query - run a query with debugQuery And at the end of results, there is a error. I ran this url too and there is at the end error too: [http://localhost:8983/solr/techproducts/select?debugQuery=on=on=*:*={!ltr%20model=myModel%20reRankDocs=100}=json] > 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 > 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
[jira] [Commented] (SOLR-10383) NPE on debug query in SOLR UI - LTR OriginalScoreFeature
[ https://issues.apache.org/jira/browse/SOLR-10383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15948899#comment-15948899 ] Vitezslav Zak commented on SOLR-10383: -- Hi Christine, I try run test scenario as you said. I run example techproducts. I add features and model by curl commands. {code} curl -XPUT 'http://localhost:8983/solr/techproducts/schema/feature-store' --data-binary "@/home/zaky/prac/myFeatures.json" -H 'Content-type:application/json' curl -XPUT 'http://localhost:8983/solr/techproducts/schema/model-store' --data-binary "@/home/zaky/prac/myModel.json" -H 'Content-type:application/json' {code} Features: {code} [ { "name" : "originalScore", "class" : "org.apache.solr.ltr.feature.OriginalScoreFeature", "params" : {} } ] {code} Model: {code} { "class" : "org.apache.solr.ltr.model.LinearModel", "name" : "myModel", "features" : [ { "name" : "originalScore" } ], "params" : { "weights" : { "originalScore" : 1.0 } } } {code} Then I go to the Solr UI/core/Query - run a query with debugQuery And at the end of results, there is a error. I ran this url too and there is at the end error too: http://localhost:8983/solr/techproducts/select?debugQuery=on=on=*:*={!ltr%20model=myModel%20reRankDocs=100}=json > 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 > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-10383) NPE on debug query in SOLR UI - LTR OriginalScoreFeature
[ https://issues.apache.org/jira/browse/SOLR-10383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vitezslav Zak updated SOLR-10383: - Remaining Estimate: 0.5h (was: 5m) Original Estimate: 0.5h (was: 5m) > 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 > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] [Updated] (SOLR-10383) NPE on debug query in SOLR UI - LTR OriginalScoreFeature
[ https://issues.apache.org/jira/browse/SOLR-10383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vitezslav Zak updated SOLR-10383: - Description: 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} was: Hi, there is a NPE if I want to debug query in SOLR UI. I'm using LTR for reranking result. My features: {code:json} { "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:json} { "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} > 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 > Original Estimate: 5m > Remaining Estimate: 5m > > 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", >
[jira] [Created] (SOLR-10383) NPE on debug query in SOLR UI - LTR OriginalScoreFeature
Vitezslav Zak created SOLR-10383: Summary: 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 Hi, there is a NPE if I want to debug query in SOLR UI. I'm using LTR for reranking result. My features: {code:json} { "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:json} { "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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org