为solr 5.3编写后置过滤器时出错

时间:2015-10-23 08:16:52

标签: solr

我已关注http://qaware.blogspot.in/2014/11/how-to-write-postfilter-for-solr-49.html来编写后置过滤器。目前我有以下错误堆栈跟踪。有人可以解释为什么我写的类无法转换为它正在扩展的父类。 org.apache.solr.common.SolrException: Error Instantiating queryParser, Pathology.Parser.NLPFilterPlugin failed to instantiate org.apache.solr.search.QParserPlugin at org.apache.solr.core.SolrCore.<init>(SolrCore.java:820) at org.apache.solr.core.SolrCore.<init>(SolrCore.java:659) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:727) at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:447) at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:438) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor$1.run(ExecutorUtil.java:210) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.solr.common.SolrException: Error Instantiating queryParser, Pathology.Parser.NLPFilterPlugin failed to instantiate org.apache.solr.search.QParserPlugin at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:588) at org.apache.solr.core.PluginBag.createPlugin(PluginBag.java:122) at org.apache.solr.core.PluginBag.init(PluginBag.java:217) at org.apache.solr.core.PluginBag.init(PluginBag.java:206) at org.apache.solr.core.SolrCore.<init>(SolrCore.java:764) ... 9 more Caused by: java.lang.ClassCastException: class Pathology.Parser.NLPFilterPlugin at java.lang.Class.asSubclass(Class.java:3208) at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:475) at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:422) at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:567) ... 13 more

0 个答案:

没有答案