Reputation: 2345
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
Upvotes: 2
Views: 1705
Reputation: 4364
Its worth noting that if your settings in solrconfig.xml do not prescribe using a separate schema.xml then it will default to using a managed-schema file.
Upvotes: 0
Reputation: 548
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" />
Upvotes: 1