Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-8131: example/files config doesn't explicitly mention a schema factory + imporove upgrading instructions

Varun Thackera1605404b895
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index d3e5b3040c8..cd24abc6e3c 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -69,8 +69,11 @@ Upgrading from Solr 5.x
See SOLR-8261 + SOLR-8329 for more details.
* If your solrconfig.xml file doesn't explicitly mention the schemaFactory to use then Solr will choose
- the ManagedIndexSchemaFactory by default. This means that the Schema APIs ( /<collection>/schema )
- are enabled by default and the schema is mutable. The schema file will be called managed-schema.
+ the ManagedIndexSchemaFactory by default. Previously it would have chosen ClassicIndexSchemaFactory.
+ This means that the Schema APIs ( /<collection>/schema ) are enabled and the schema is mutable.
+ When Solr starts your schema.xml file will be renamed to managed-schema. If you want to retain the old behaviour
+ then please ensure that the solrconfig.xml explicitly uses the ClassicIndexSchemaFactory :
+ <schemaFactory class="ClassicIndexSchemaFactory"/> or your luceneMatchVersion in the solrconfig.xml is less than 6.0
Detailed Change List
----------------------
diff --git a/solr/example/files/conf/solrconfig.xml b/solr/example/files/conf/solrconfig.xml
index 4ba68941706..be69a4f93af 100644
--- a/solr/example/files/conf/solrconfig.xml
+++ b/solr/example/files/conf/solrconfig.xml
@@ -131,28 +131,6 @@
-->
<codecFactory class="solr.SchemaCodecFactory"/>
- <!-- To disable dynamic schema REST APIs, use the following for <schemaFactory>:
-
- <schemaFactory class="ClassicIndexSchemaFactory"/>
-
- When ManagedIndexSchemaFactory is specified instead, Solr will load the schema from
- the resource named in 'managedSchemaResourceName', rather than from schema.xml.
- Note that the managed schema resource CANNOT be named schema.xml. If the managed
- schema does not exist, Solr will create it after reading schema.xml, then rename
- 'schema.xml' to 'schema.xml.bak'.
-
- Do NOT hand edit the managed schema - external modifications will be ignored and
- overwritten as a result of schema modification REST API calls.
-
- When ManagedIndexSchemaFactory is specified with mutable = true, schema
- modification REST API calls will be allowed; otherwise, error responses will be
- sent back for these requests.
- -->
- <schemaFactory class="ManagedIndexSchemaFactory">
- <bool name="mutable">true</bool>
- <str name="managedSchemaResourceName">managed-schema</str>
- </schemaFactory>
-
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Index Config - These settings control low-level behavior of indexing
Most example settings here show the default value, but are commented