throw new RuntimeException("Can't load spell checker: " + className);
}
}
}
String xpath = "queryConverter";
SolrConfig solrConfig = core.getSolrConfig();
NodeList nodes = (NodeList) solrConfig.evaluate(xpath, XPathConstants.NODESET);
Map<String, QueryConverter> queryConverters = new HashMap<String, QueryConverter>();
NamedListPluginLoader<QueryConverter> loader =
new NamedListPluginLoader<QueryConverter>("[solrconfig.xml] " + xpath, queryConverters);
loader.load(solrConfig.getResourceLoader(), nodes);
//ensure that there is at least one query converter defined
if (queryConverters.size() == 0) {
LOG.warning("No queryConverter defined, using default converter");
queryConverters.put("queryConverter", new SpellingQueryConverter());