You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/08/25 14:36:00 UTC

[jira] [Commented] (SOLR-11180) OriginalScoreFeature always returns 0.0 with SolrCloud mode.

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

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

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

SOLR-11164, SOLR-11180, SOLR-11220: Fix NullPointerException and always-returns-zero contrib/ltr OriginalScoreFeature issues in SolrCloud mode.
(Yuki Yano, Jonathan Gonzalez, Ryan Yacyshyn, Christine Poerschke)


> OriginalScoreFeature always returns 0.0 with SolrCloud mode.
> ------------------------------------------------------------
>
>                 Key: SOLR-11180
>                 URL: https://issues.apache.org/jira/browse/SOLR-11180
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: contrib - LTR
>    Affects Versions: 6.5
>         Environment: Repro on SolrCloud mode.  Working ok with a standalone instance.
>            Reporter: Jonathan Gonzalez
>            Assignee: Christine Poerschke
>         Attachments: how to repro - ltrbug.zip
>
>
> This bug is related to SOLR-11164.
> org.apache.solr.ltr.feature.OriginalScoreFeature is always returning 0.0 when configured LTR features are evaluated within a SolrCloud cluster.
> {code}
> {
> 	"responseHeader": {
> 		"zkConnected": true,
> 		"status": 0,
> 		"QTime": 10,
> 		"params": {
> 			"q": "test",
> 			"fl": "id,score,[features]"
> 		}
> 	},
> 	"response": {
> 		"numFound": 2,
> 		"start": 0,
> 		"maxScore": 1.7527907,
> 		"docs": [
> 			{
> 				"id": "GB18030TEST",
> 				"[features]": "originalScore=0.0",
> 				"score": 1.7527907
> 			},
> 			{
> 				"id": "UTF8TEST",
> 				"[features]": "originalScore=0.0",
> 				"score": 1.5209608
> 			}
> 		]
> 	}
> }
> {code}
> Furthermore, is throwing an exception when the query parser is used.
> {code}
> {
> 	"responseHeader": {
> 		"zkConnected": true,
> 		"status": 500,
> 		"QTime": 18,
> 		"params": {
> 			"q": "test",
> 			"fl": "id,score,[features]",
> 			"rq": "{!ltr model=model reRankDocs=100}"
> 		}
> 	},
> 	"error": {
> 		"metadata": [
> 			"error-class",
> 			"org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException",
> 			"root-error-class",
> 			"org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException"
> 		],
> 		"msg": "Error from server at http://someip:8983/solr/gettingstarted_shard2_replica1: Server Error\n\nrequest: http://someip:8983/solr/gettingstarted_shard2_replica1/query",
> 		"trace": "org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://someip:8983/solr/gettingstarted_shard2_replica1: Server Error\n\nrequest: http://someip:8983/solr/gettingstarted_shard2_replica1/query\r\n\tat org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:610)\r\n\tat org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:279)\r\n\tat org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:268)\r\n\tat org.apache.solr.client.solrj.SolrClient.request(SolrClient.java:1219)\r\n\tat org.apache.solr.handler.component.HttpShardHandler.lambda$submit$0(HttpShardHandler.java:163)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:176)\r\n\tat org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:229)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n",
> 		"code": 500
> 	}
> }
> {code}
> Attached a file with a sample on how to repro:
> - Use bin\solr -e cloud -Dsolr.ltr.enabled=true to create a sample SolrCloud with techproducts.
> - Features file with only OriginalScoreFeature
> - Simple model using that feature.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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