lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuki Yano (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SOLR-11164) OriginalScoreFeature causes NullPointerException during feature logging with SolrCloud mode.
Date Mon, 14 Aug 2017 09:28:00 GMT

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

Yuki Yano edited comment on SOLR-11164 at 8/14/17 9:27 AM:
-----------------------------------------------------------

With new patch, the reported case of [SOLR-11180|https://issues.apache.org/jira/browse/SOLR-11180]
seems to work fine.

without re-ranking : {{http://localhost:8983/solr/gettingstarted/query?q=test&fl=id,score,%5Bfeatures%5D}}
{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=1.7527907",
        "score":1.7527907},
      {
        "id":"UTF8TEST",
        "[features]":"originalScore=1.5209608",
        "score":1.5209608}]
  }}
{code}

with re-ranking : {{http://localhost:8983/solr/gettingstarted/query?q=test&rq=\{!ltr%20model=model%20reRankDocs=100\}&fl=id,score,[features]}}
{code}
{
  "responseHeader":{
    "zkConnected":true,
    "status":0,
    "QTime":12,
    "params":{
      "q":"test",
      "fl":"id,score,[features]",
      "rq":"{!ltr model=model reRankDocs=100}"}},
  "response":{"numFound":2,"start":0,"maxScore":0.87639534,"docs":[
      {
        "id":"GB18030TEST",
        "[features]":"originalScore=1.7527907",
        "score":0.87639534},
      {
        "id":"UTF8TEST",
        "[features]":"originalScore=1.5209608",
        "score":0.7604804}]
  }}
{code}


was (Author: yuyano):
With new patch, the reported case of [SOLR-11180|https://issues.apache.org/jira/browse/SOLR-11180]
seems to work fine.

without re-ranking : {{http://localhost:8983/solr/gettingstarted/query?q=test&fl=id,score,%5Bfeatures%5D}}
{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=1.7527907",
        "score":1.7527907},
      {
        "id":"UTF8TEST",
        "[features]":"originalScore=1.5209608",
        "score":1.5209608}]
  }}
{code}

with re-ranking : {{http://localhost:8983/solr/gettingstarted/query?q=test&rq={!ltr%20model=model%20reRankDocs=100}&fl=id,score,[features]}}
{code}
{
  "responseHeader":{
    "zkConnected":true,
    "status":0,
    "QTime":12,
    "params":{
      "q":"test",
      "fl":"id,score,[features]",
      "rq":"{!ltr model=model reRankDocs=100}"}},
  "response":{"numFound":2,"start":0,"maxScore":0.87639534,"docs":[
      {
        "id":"GB18030TEST",
        "[features]":"originalScore=1.7527907",
        "score":0.87639534},
      {
        "id":"UTF8TEST",
        "[features]":"originalScore=1.5209608",
        "score":0.7604804}]
  }}
{code}

> OriginalScoreFeature causes NullPointerException during feature logging with SolrCloud
mode.
> --------------------------------------------------------------------------------------------
>
>                 Key: SOLR-11164
>                 URL: https://issues.apache.org/jira/browse/SOLR-11164
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: contrib - LTR
>    Affects Versions: 6.6
>            Reporter: Yuki Yano
>         Attachments: SOLR-11164.patch, SOLR-11164.patch
>
>
> In FeatureTransfer, OriginalScoreFeature uses original Query instance preserved in LTRScoringQuery
for the evaluation.
> This query is set in RankQuery#wrap during QueryComponent#process.
> With SolrCloud mode, document searches take two steps: finding top-N document ids, and
filling documents of found ids.
> In this case, FeatureTransformer works in the second step and tries to extract features
with LTRScoringQuery built in QueryComponent#prepare.
> However, because the second step doesn't call QueryComponent#process, the original query
of LTRScoringQuery remains null and this causes NullPointerException while evaluating OriginalScoreFeature.
> We can get the original query from ResultContext which is an argument of DocTransformer#setContext,
thus this problem can solve by using it if LTRScoringQuery doesn't have correct original query.



--
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


Mime
View raw message