3
votes

I created a solr core using bin/solr -c core1 and then copied the schema.xml file from basic config set to core1/conf folder and added a field

<field name="title" type="text" indexed="true" stored="true"/>.

But this field is not reflected in schema browser. What configurations should I make to get the new fields reflected in schema browser in solr admin ui?

I am using solr 5.3.1

2
In admin panel can you able to see newly ceated core i.e. core1Prashant Thorat

2 Answers

4
votes

By default when you create a solr core it will use managed schema. You will see the following configuration in solrconfig.xml after core is created.

 <schemaFactory class="ManagedIndexSchemaFactory">
    <bool name="mutable">true</bool>
    <str name="managedSchemaResourceName">managed-schema</str>
  </schemaFactory>

Above this configuration you will find the comments on how use managed-schema. Comment this out and uncomment the following to use schema.xml

<schemaFactory class="ClassicIndexSchemaFactory"/> 
1
votes

You need to reload the core: go to http://yourhost:8983/solr/#/~cores/core1 and press "Reload" button.