The Problem
You have edited your schema.xml — added fields, changed field types, updated analyzers — but after saving, nothing changes. Solr still behaves as if your old schema is in effect. Your new fields are "unknown," your type changes are ignored.
Why This Happens
Solr has two ways of managing its schema, and if you are using the wrong one, your schema.xml edits will be silently ignored:
How to Fix It
Step 1: Check Which Mode You Are In
Open your solrconfig.xml in the Configuration tab and search for schemaFactory. If you see this:
<schemaFactory class="ManagedIndexSchemaFactory"> <bool name="mutable">true</bool> <str name="managedSchemaResourceName">managed-schema</str> </schemaFactory>
Then you are in Managed Mode — your schema.xml is being ignored.
Step 2: Switch to Classic Mode
Replace the entire schemaFactory block with:
<schemaFactory class="ClassicIndexSchemaFactory"/>
Important: Also remove any remaining ManagedIndexSchemaFactory lines. Having both will cause confusion.
Step 3: Save
Save solrconfig.xml. Saving reloads the index by itself, and Solr now reads your schema.xml as the source of truth.
Other Reasons Schema Changes Do Not Apply
The Reload Failed
Saving a file in the Configuration tab reloads the index at once. When the new schema has an error, the reload fails and Solr keeps running the schema it already had, so nothing seems to change. The error shows when you save, and in the Error Log.
Typos in Field Names or Types
Field names are case-sensitive. If your application sends ProductName but your schema defines productname, Solr treats them as two different fields. Double-check every character.
Missing Field Types
If your <field> definition references a type that does not exist as a <fieldType> in the same schema file, Solr will reject the schema on reload. Check the Error Log for the specific missing type.
Step-by-Step Debugging
- Check the Error Log after saving — syntax errors and missing types show up here
- Search for
schemaFactoryinsolrconfig.xml— make sure it saysClassicIndexSchemaFactory - Test with a simple field — add one new field, save, and try indexing a document with it
- Compare field names — verify your application sends the exact same field names as defined in
schema.xml
Quick Reference
| Symptom | Likely Cause | Fix |
|---|---|---|
| New fields are "unknown" | Managed mode is active | Switch to ClassicIndexSchemaFactory |
| Changes have no effect after save | The reload failed | Read the error shown on save, or the Error Log |
| Reload fails with errors | Typo or missing field type | Check Error Log for details |
| Fields exist but behave oddly | Wrong field type assigned | Verify type attribute matches a fieldType |