Solr acts as a standalone search server and can be configured without coding. You can think of it as the face for Lucene. The purpose of the schema.xml file is to determine your index.
If possible, I would suggest defining all of your fields in the schema file. This gives you more control over how these fields are indexed, and allows you to use copy fields (if you need them).
source
share