solr与tomcat整合遇到的一个问题

最近在整合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是多少位的,如果各位

遇到了这个问题,可以尝试以上两种方法。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值