Skip to content

Instantly share code, notes, and snippets.

@sufimalek
Created August 30, 2017 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sufimalek/2aa4a5f3af30ff0e75d220153c578856 to your computer and use it in GitHub Desktop.
Save sufimalek/2aa4a5f3af30ff0e75d220153c578856 to your computer and use it in GitHub Desktop.
Remove managed-schema and get schema.xml in SOLR core [ Version 5.5.0 and above ]
Lets say solr is located at /usr/local/solr-5.5.0 .
1. bin/solr start
2. bin/solr create -c test
3. location of new core is here /usr/local/solr-5.5.0/server/solr/test
4. location of solrconfig is here /usr/local/solr-5.5.0/server/solr/test/solrconfig.xml
5. Open solrconfig.xml -
You will find this
<schemaFactory class="ManagedIndexSchemaFactory">
<bool name="mutable">true</bool>
<str name="managedSchemaResourceName">managed-schema</str>
</schemaFactory>
6. Change to
<schemaFactory class="ClassicIndexSchemaFactory">
</schemaFactory>
7. Rename the managed-schema file( /usr/local/solr-5.5.0/server/solr/test/managed-schema ) to schema.xml.
8. Reload the core(s).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment