- Home
- Uncategorized
- Updating the Solr Schema
Updating the Solr Schema
We’ll often need a custom schema for our solr instances. This article show how to do this.
It’s always a good idea to back up the current working schema.xml before making any changes
sudo cp /etc/solr/conf/schema.xml /etc/solr/conf/schemaOrig.xml
Let’s now edit the schema file:
sudo nano /etc/solr/conf/schema.xml
I usually start with the fields and the dynamicfields and then simplify the types to only the one’s I need. I also delete all of the copyFields at the end of the xml document