Search code examples
solrconfiguration-files

Changes needed to schema.xml and solrconfig.xml


I'm adding a few fields using solrj. What changes need i make in the solrconfig.xml and schema.xml?

I'm new to solr and i'd love some help


Solution

  • You shouldn't need to change solrconfig.xml unless you are changing the way your solr instance behaves. Adding a field just requires that schema.xml include a line like:

    <field name="myField" type="[field of a type defined in your schema]" indexed="true|false"  stored="true|false"  multiValued="true|false" />