Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
While trying to create a model definition, I was getting back the response:
{ "responseHeader":{ [...] "error":{ [...] "msg":"org.apache.solr.ltr.model.ModelException: Model type does not exist org.apache.solr.ltr.model.LinearModel", "code":400} } }
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:
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
Attachments
Issue Links
- relates to
-
SOLR-11137 LTR: misleading error message when loading a model
- Resolved
-
SOLR-15149 Learning To Rank model upload fails generically
- Closed
-
SOLR-12367 When adding a model referencing a non-existent feature the error message is very ambiguous
- Open