Skip to content

Apache Lucene open-source search software

SOLR-8387: Rename all schema.xml files to managed-schema

Varun Thacker40486d3220fe
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index eb179176aeb..68fa78a3bcc 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -272,6 +272,13 @@ Other Changes
* SOLR-8360: simplify ExternalFileField.getValueSource implementation (Christine Poerschke)
+* SOLR-8387: All example configs shipped with Solr explicitly use ManagedIndexSchemaFactory, the schema file will
+ be called managed-schema instead of schema.xml . It is not advised to use hand edit the managed-schema. You should
+ use the schema APIs instead ( /<collection>/schema ) . If you do not want this behaviour in the example configs,
+ before you start solr rename managed-schema to schema.xml and change the schemaFactory in solrconfig.xml file
+ to explicitly use ClassicIndexSchemaFactory instead : <schemaFactory class="ClassicIndexSchemaFactory"/>
+ (Varun Thacker)
+
================== 5.4.0 ==================
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release
diff --git a/solr/example/example-DIH/solr/db/conf/schema.xml b/solr/example/example-DIH/solr/db/conf/managed-schema
similarity index 100%
rename from solr/example/example-DIH/solr/db/conf/schema.xml
rename to solr/example/example-DIH/solr/db/conf/managed-schema
diff --git a/solr/example/example-DIH/solr/mail/conf/schema.xml b/solr/example/example-DIH/solr/mail/conf/managed-schema
similarity index 100%
rename from solr/example/example-DIH/solr/mail/conf/schema.xml
rename to solr/example/example-DIH/solr/mail/conf/managed-schema
diff --git a/solr/example/example-DIH/solr/rss/conf/schema.xml b/solr/example/example-DIH/solr/rss/conf/managed-schema
similarity index 100%
rename from solr/example/example-DIH/solr/rss/conf/schema.xml
rename to solr/example/example-DIH/solr/rss/conf/managed-schema
diff --git a/solr/example/example-DIH/solr/solr/conf/schema.xml b/solr/example/example-DIH/solr/solr/conf/managed-schema
similarity index 100%
rename from solr/example/example-DIH/solr/solr/conf/schema.xml
rename to solr/example/example-DIH/solr/solr/conf/managed-schema
diff --git a/solr/example/example-DIH/solr/tika/conf/schema.xml b/solr/example/example-DIH/solr/tika/conf/managed-schema
similarity index 100%
rename from solr/example/example-DIH/solr/tika/conf/schema.xml
rename to solr/example/example-DIH/solr/tika/conf/managed-schema
diff --git a/solr/server/solr/configsets/basic_configs/conf/schema.xml b/solr/server/solr/configsets/basic_configs/conf/managed-schema
similarity index 100%
rename from solr/server/solr/configsets/basic_configs/conf/schema.xml
rename to solr/server/solr/configsets/basic_configs/conf/managed-schema
diff --git a/solr/server/solr/configsets/sample_techproducts_configs/conf/schema.xml b/solr/server/solr/configsets/sample_techproducts_configs/conf/managed-schema
similarity index 100%
rename from solr/server/solr/configsets/sample_techproducts_configs/conf/schema.xml
rename to solr/server/solr/configsets/sample_techproducts_configs/conf/managed-schema