You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Alessandro Benedetti (Jira)" <ji...@apache.org> on 2021/02/15 17:23:00 UTC

[jira] [Commented] (SOLR-12676) Improve details on ModelException when the feature of a model has not been defined

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

Alessandro Benedetti commented on SOLR-12676:
---------------------------------------------

This issue has been resolved in SOLR-15149, please double check and resolve this!
8.9.0 the expected fix version

> Improve details on ModelException when the feature of a model has not been defined
> ----------------------------------------------------------------------------------
>
>                 Key: SOLR-12676
>                 URL: https://issues.apache.org/jira/browse/SOLR-12676
>             Project: Solr
>          Issue Type: Improvement
>          Components: contrib - LTR
>            Reporter: Steven Spasbo
>            Priority: Major
>
> While trying to create a model definition, I was getting back the response:
> {code}
> {
>   "responseHeader":{
>   [...]
>   "error":{
>     [...]
>     "msg":"org.apache.solr.ltr.model.ModelException: Model type does not exist org.apache.solr.ltr.model.LinearModel",
>     "code":400}
>     }
> }
> {code}
> I initially thought this was related to the library, but after a while figured out that I had forgotten to create a feature in my feature store. After creating that the model was created as expected. 
> To recreate this:
> {code}
> curl -XPOST -H 'Content-Type: application/json' \
> -d '{
>   "store" : "myStore",
>   "name" : "myModel",
>   "class" : "org.apache.solr.ltr.model.LinearModel",
>   "features" : [{
>     "name" : "nonExistentFeature"
>   }],
>   "params" : {
>     "nonExistentFeature" : 1.0
>   }
> }' http://localhost:8983/solr/$CORE/schema/model-store
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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