lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-11931) fix contrib/ltr custom inner class feature/normaliser/model persistence
Date Fri, 09 Feb 2018 18:07:00 GMT

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

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

Commit 530a931c66a94ae247700adba3bc4f2395728008 in lucene-solr's branch refs/heads/branch_7x
from [~cpoerschke]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=530a931 ]

SOLR-11931: Fix contrib/ltr custom inner class feature/normaliser/model persistence.


> fix contrib/ltr custom inner class feature/normaliser/model persistence
> -----------------------------------------------------------------------
>
>                 Key: SOLR-11931
>                 URL: https://issues.apache.org/jira/browse/SOLR-11931
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - LTR
>            Reporter: Christine Poerschke
>            Assignee: Christine Poerschke
>            Priority: Minor
>         Attachments: SOLR-11931.patch
>
>
> Custom feature/normaliser/model persistence across reloads is broken if the custom class
is an inner class. This is because the class would be configured as (say) {{com.company.solr.ltr.feature.CustomFeatures$FeatureFoo}}
but the stores (wrongly) persist {{com.company.solr.ltr.feature.CustomFeatures.FeatureFoo}}
i.e. it's about the difference between {{getName()}} and {{getCanonicalName()}} -- helpful
link: https://stackoverflow.com/questions/15202997/what-is-the-difference-between-canonical-name-simple-name-and-class-name-in-jav/15203417



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message