Hi Roee,

It looks the error is due to blank feature param value in the json.

"name" : "my",
   "features":[],
   "params" : {

I have observed that many a times solr ltr returns generic error that 'Model
type does not
exist', but later actually found to be an issue with json. Just wanted to
share my experience.

Regards
Kamal

On Thu, May 31, 2018 at 4:07 PM Roee T <roeeta...@gmail.com> wrote:

> Hi all,
> I'm trying to upload the most simple model to solr 7.3.1 and i get an
> error:
>
> the model:
>
> {
>    "class" : "org.apache.solr.ltr.model.MultipleAdditiveTreesModel",
>    "name" : "my",
>    "features":[],
>    "params" : {
>        "trees" : [
>            {
>                "weight" : 1,
>                "root" : {
>                    "value" : -10
>                }} ]}}
>
> The error:
>   "error":{
>     "metadata":[
>       "error-class","org.apache.solr.common.SolrException",
>       "root-error-class","java.lang.IllegalArgumentException"],
>     "msg":"org.apache.solr.ltr.model.ModelException: Model type does not
> exist org.apache.solr.ltr.model.MultipleAdditiveTreesModel",
>     "code":400}}
>
>
> I inserted the configurations to solrconfig.xml like
>   <lib dir="${solr.install.dir:../../../..}/contrib/langid/lib/"
> regex=".*\.jar" />
> and started solr using   -Dsolr.ltr.enabled=true
>
> please help me
> Thanks you all ;)
>
>
>
> --
> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html
>

Reply via email to