Note: If both solutions apply to your specific SXP and Solr version combination, you must implement Solution [2] before Solution [1].
To resolve the issue:
- Make the following changes in the default schema.xml file distributed with Solr:
- Enclose all <field> and <dynamicField> elements in the <fields> tag.
- Enclose all <fieldType> elements in the <types> tag.
- To add Sitecore-specific configuration, pass the modified schema.xml file to the Build Solr Schema wizard.
- Put the resulting file in the configuration folder of the Solr core.
- Find the following dynamic field definition in the schema.xml file:
<dynamicField name="*_pi" type="pint" indexed="true" stored="true" />
Change the mapping type from "pint" to "tint".<dynamicField name="*_pi" type="tint" indexed="true" stored="true" />
- Reload the core to apply the schema changes.
- Restart the application pool of the website to initialize Sitecore indexes using the updated schema.xml file.