liujieke
liujieke

Reputation: 21

How can I integrate Solr5.1.0 with Nutch1.10

I replaced the Solr schema.xml with nutch schema.xml. But when I run Solr again,Solr log prints this error:

ERROR - 2015-06-09 09:54:30.279; [ ] org.apache.solr.core.CoreContainer; Error creating core [mycore]: Could not load conf for core mycore: Unknown fieldType 'int' specified on field cityConfidence. Schema file is /opt/solr-5.1.0/server/solr/mycore/conf/schema.xml org.apache.solr.common.SolrException: Could not load conf for core mycore: Unknown fieldType 'int' specified on field cityConfidence. Schema file is /opt/solr-5.1.0/server/solr/mycore/conf/schema.xml

Upvotes: 2

Views: 574

Answers (2)

douglee
douglee

Reputation: 11

try schema-solr4.xml instead of schema.xml

Upvotes: 0

Bruno dos Santos
Bruno dos Santos

Reputation: 1361

The problem is that Nutch schema.xml file doesn't contains the field type int used by cityConfidence field. To solve this problem just include the followed line in your schema.xml file:

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

Make sure all field types used by your fields are declared in your schema.xml file.

Upvotes: 1

Related Questions