繁体   English   中英

如何将 Solr5.1.0 与 Nutch1.10 集成

[英]How can I integrate Solr5.1.0 with Nutch1.10

我更换了Solr的schema.xml使用Nutch schema.xml 但是当我再次运行 Solr 时,Solr 日志打印了这个错误:

错误 - 2015-06-09 09:54:30.279; [] org.apache.solr.core.CoreContainer; 创建核心 [mycore] 时出错:无法为核心 mycore 加载 conf:在 cityConfidence 字段上指定了未知的 fieldType 'int'。 架构文件是 /opt/solr-5.1.0/server/solr/mycore/conf/schema.xml org.apache.solr.common.SolrException: 无法加载核心 mycore 的 conf: 字段 cityConfidence 上指定的未知 fieldType 'int' . 架构文件是 /opt/solr-5.1.0/server/solr/mycore/conf/schema.xml

问题是 Nutch schema.xml文件不包含cityConfidence字段使用的字段类型int 要解决此问题,只需在schema.xml文件中包含以下行:

<fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>

确保您的字段使用的所有字段类型都在您的schema.xml文件中声明。

尝试schema-solr4.xml而不是 schema.xml

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM