Posts

Showing posts from July, 2015

Solr Error: Plugin init failure for [schema.xml] fieldType "x": Error loading class 'solr.xfield'

I recently integrated Solr with Sitecore 7.2 and found that the Schema.xml generated by Sitecore is only supported up to Solr 4.x.  Configuring Solr for Sitecore 8  provides the steps required to upgrade Schema.xml to work with Solr 5.x, especially the Step 3 that mentions that Solr.IntField is deprecated and must be replaced with Solr.TrieIntField. What is fails to mention is that you need to replace the other field types as well else you run into the following error for each of the field types: Could not load conf for core contentindex: Plugin init failure for [schema.xml] fieldType "plong": Error loading class 'solr.LongField'. The Fix: In Sitecore generated Schema.xml Replace     <fieldType name="pint" class="solr.IntField" />     <fieldType name="plong" class="solr.IntField" />     <fieldType name="pfloat" class="solr.FloatField" />     <fieldType name="pdou