diff --git a/solr/contrib/ltr/src/java/org/apache/solr/ltr/rest/ManagedFeatureStore.java b/solr/contrib/ltr/src/java/org/apache/solr/ltr/rest/ManagedFeatureStore.java index 7913ec6a1819..5b41771c71f5 100644 --- a/solr/contrib/ltr/src/java/org/apache/solr/ltr/rest/ManagedFeatureStore.java +++ b/solr/contrib/ltr/src/java/org/apache/solr/ltr/rest/ManagedFeatureStore.java @@ -89,16 +89,11 @@ protected void onManagedDataLoadedFromStorage(NamedList managedInitArgs, } } - public synchronized void addFeature(Map map, String featureStore) - throws FeatureException { - try { - log.info("register feature based on {}", map); - final FeatureStore fstore = getFeatureStore(featureStore); - final Feature feature = fromFeatureMap(solrResourceLoader, map); - fstore.add(feature); - } catch (final FeatureException e) { - throw new SolrException(ErrorCode.BAD_REQUEST, e); - } + public synchronized void addFeature(Map map, String featureStore) { + log.info("register feature based on {}", map); + final FeatureStore fstore = getFeatureStore(featureStore); + final Feature feature = fromFeatureMap(solrResourceLoader, map); + fstore.add(feature); } @SuppressWarnings("unchecked")