Saturday, March 17, 2018

FW: LTR not able to upload org.apache.solr.ltr.model.MultipleAdditiveTreesModel

-----Original Message-----
From: Alessandro Benedetti [mailto:a.benedetti@sease.io]
Sent: 14 March 2018 20:02
To: solr-user@lucene.apache.org
Subject: Re: LTR not able to upload
org.apache.solr.ltr.model.MultipleAdditiveTreesModel

This is the piece of code involved :

"try {
// create an instance of the model
model = solrResourceLoader.newInstance(
className,
LTRScoringModel.class,
new String[0], // no sub packages
new Class[] { String.class, List.class, List.class, String.class,
List.class, Map.class },
new Object[] { name, features, norms, featureStoreName,
allFeatures, params });
if (params != null) {
SolrPluginUtils.invokeSetters(model, params.entrySet());
}
} catch (final Exception e) {
throw new ModelException("Model type does not exist " + className, e);
}"

I admit it is generic and contains even a catch "Exception" clause, but
wasn't it logging the stacktrace ?
Just out of curiosity, how was the entire stacktrace ?

This may help to improve it.

Regards



-----
---------------
Alessandro Benedetti
Search Consultant, R&D Software Engineer, Director Sease Ltd. - www.sease.io
--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

No comments:

Post a Comment