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

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

Commit d70269bd612cf682beb9c785236ea2517ff5f795 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=d70269b ]

SOLR-10421: Fix params persistence for solr/contrib/ltr 
(MinMax|Standard)Normalizer classes.
(Jianxiong Dong, Christine Poerschke)


> solr/contrib/ltr (MinMax|Standard)Normalizer.paramsToMap needs to save float 
> as string
> --------------------------------------------------------------------------------------
>
>                 Key: SOLR-10421
>                 URL: https://issues.apache.org/jira/browse/SOLR-10421
>             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: Christine Poerschke
>            Assignee: Christine Poerschke
>         Attachments: SOLR-10421.patch
>
>
> Please see Jianxiong Dong's [solr learning_to_rank (normalizer) unmatched 
> argument type 
> issue|https://lists.apache.org/thread.html/dd7f553b28da5ea6ef55bf0059970be50fb3e2c68348ac95a749163d@%3Csolr-user.lucene.apache.org%3E]
>  email on the user mailing list for details on how this bug manifests.
> Implementation choice background:
> * If the number were to be saved as a number then {{4.2}} could be considered 
> either as a float or as a double and hence the normalizer classes would need 
> setters for both those possibilities. Equally, {{42.0}} could be saved as 
> just {{42}} which then could be either an int or a long and so again setters 
> for both possibilities would be needed. All this complexity is avoided by 
> saving the number as a string. The class has convenience float setters which 
> can be handy for use in tests.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to