[ 
https://issues.apache.org/jira/browse/SOLR-11164?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christine Poerschke updated SOLR-11164:
---------------------------------------
    Attachment: SOLR-11164.patch

Thanks [~yuyano] for the rebased patch!

I'm attaching patch with two more small revisions:
* removal of duplicate setOriginalQuery call
* in TestLTROnSolrCloud keep the variable number of 
shards/replica/shards-per-node but adjust shards-per-node and numberOfNodes 
logic

Will run {{ant precommit}} and re-run tests after lunch, and then commit to 
master and branch_7x (for 7.1 release).

> 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
>            Assignee: Christine Poerschke
>         Attachments: SOLR-11164_master.patch, SOLR-11164_master_v2.patch, 
> SOLR-11164.patch, 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to