我收到此错误
collection1: org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: 无法为核心集合1加载conf:插件初始化失败 [schema.xml] fieldType" pint&#34 ;:加载课程时遇到错误' solr.IntField'。
当我尝试将集合1(solr 4.5)架构导入到solr 5.1时。
我只从不同的机器上复制集合1,其中solr 4.5运行并粘贴到此处/ solr / server / solr / collection1其中solr 5.1运行并重新启动solr。对不起,我是初学者,不太了解solr,只需按照一些教程。
日志
org.apache.solr.common.SolrException: Could not load conf for core collection1: Plugin init failure for [schema.xml] fieldType "pint": Error loading class 'solr.IntField'. Schema file is /home/jackson/Downloads/solr/server/solr/collection1/conf/schema.xml
at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:78)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:516)
at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:283)
at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:277)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
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: Plugin init failure for [schema.xml] fieldType "pint": Error loading class 'solr.IntField'. Schema file is /home/jackson/Downloads/solr/server/solr/collection1/conf/schema.xml
at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:596)
at org.apache.solr.schema.IndexSchema.<init>(IndexSchema.java:175)
at org.apache.solr.schema.IndexSchemaFactory.create(IndexSchemaFactory.java:55)
at org.apache.solr.schema.IndexSchemaFactory.buildIndexSchema(IndexSchemaFactory.java:69)
at org.apache.solr.core.ConfigSetService.createIndexSchema(ConfigSetService.java:102)
at org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:74)
... 7 more
Caused by: org.apache.solr.common.SolrException: Plugin init failure for [schema.xml] fieldType "pint": Error loading class 'solr.IntField'
at org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:177)
at org.apache.solr.schema.IndexSchema.readSchema(IndexSchema.java:489)
... 12 more
Caused by: org.apache.solr.common.SolrException: Error loading class 'solr.IntField'
at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:492)
at org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:561)
at org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:526)
at org.apache.solr.core.SolrResourceLoader.newInstance(SolrResourceLoader.java:519)
at org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:80)
at org.apache.solr.schema.FieldTypePluginLoader.create(FieldTypePluginLoader.java:42)
at org.apache.solr.util.plugin.AbstractPluginLoader.load(AbstractPluginLoader.java:151)
... 13 more
Caused by: java.lang.ClassNotFoundException: solr.IntField
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:789)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:274)
at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:476)
由于
答案 0 :(得分:23)
答案 1 :(得分:2)
我认为在您早期版本的schema.xml中,您有一个字段类型的pint 现在在当前版本中它不受支持,因为我没有在schema.xml中看到fieldType(在我下载Solr.5.1.0时的默认版本中)。
替换/删除它,错误将得到纠正。
这个fieldType在早期版本(我使用3.4)
中<fieldType name="pint" class="solr.IntField" omitNorms="true"/>
在当前的5.1.0中,我没有看到此字段类型。