最近在整合solr和tomcat时遇到这样一个问题:
HTTP Status 500 - {msg=SolrCore 'collection1' is not available due to init failure: Could not load conf for core collection1: copyField source :'includes' is not a glob and doesn't match any explicit field or dynamicField.. Schema file is D:\solrhome\collection1\conf\schema.xml,trace=org.apache.solr.common.SolrException: SolrCore 'collection1' is not available due to init failure: Could not load conf for core collection1: copyField source :'includes' is not a glob and doesn't match any explicit field or dynamicField.. Schema file is D:\solrhome\collection1\conf\schema.xml
无法关联或无法加载'includes'这个字段,最终在schema.xml文件中找到了该字段:
<copyField source="cat" dest="text"/>
<copyField source="name" dest="text"/>
<copyField source="manu" dest="text"/>
<copyField source="features" dest="text"/>
<copyField source="includes" dest="text"/>
<copyField source="manu" dest="manu_exact"/>
将该字段注释后,保存并重新tomcat后,整合成功。
<!--<copyField source="includes" dest="text"/> -->
事后,我朋友告诉我他也遇到了这个问题,他的解决方案是把tomcat换成了32位的,就成功了,
因为他的jdk也是32位,我的jdk也是32位的,但是我不知道我的tomcat是多少位的,如果各位
遇到了这个问题,可以尝试以上两种方法。