Solr Error This Indexschema is not mutable

I want to use the schema.xml rather than the managed schema so I changed the following in the solrconfig.xml to the below

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

to

<schemaFactory class="ClassicIndexSchemaFactory"/> 

But I get The indexschema is not mutable error when I try to Index a flat file using the post command.

Remove the AddSchemaFieldsUpdateProcessorFactory section from the updateRequestProcessorChain config in your solrconfig.xml

The schemaFactory option in solrconfig.xml. This controls whether the Schema should be defined as a "managed index schema": schema modification is only possible through the Schema API. By default, if no schemaFactory is specified, then the default behavior is to use the "ClassicIndexSchemaFactory"

The ClassicIndexSchemaFactory requires the use of a schema.xml file, which can be edited manually and is only loaded only when the collection is loaded. This setting disallows Schema API methods that modify the schema.

When ManagedIndexSchemaFactory is specified instead, Solr will load the schema from he resource named in managedSchemaResourceName, rather than from schema.xml.

AddSchemaFieldsUpdateProcessorFactory : This processor will dynamically add fields to the schema if an input document contains one or more fields that don't match any field or dynamic field in the schema.

read more on the same here https://lucene.apache.org/solr/4_6_0/solr-core/org/apache/solr/update/processor/AddSchemaFieldsUpdateProcessorFactory.html

In short the above process factory is used for managed schema. When one does not want to use ManagedIndexSchemaFactory it should be removed from the updateRequestProcessorChain.

For more details of it you can check out the solr code or read the source code of the AddSchemaFieldsUpdateProcessorFactory.java Debug the method processAdd(AddUpdateCommand cm) , will help more on the same.

[#SOLR-7234] Error adding fields : error message This , Error adding fields : error message This IndexSchema is not mutable with a classicSchemaIndexFactory. Status: Assignee: Priority: Resolution:. error message This IndexSchema is not mutable with a classicSchemaIndexFactory. Hi guys, I saw an issue in Jira (https://issues.apache.org/jira/browse/SOLR-7234) with

At least in Solr 7.2 you should probably just switch update.autoCreateFields to false in the updateRequestProcessorChain definition in solrconfig.xml as the comment indicates.

<!-- The update.autoCreateFields property can be turned to false to disable schemaless mode -->
<updateRequestProcessorChain name="add-unknown-fields-to-the-schema" default="${update.autoCreateFields:false}"
                             processor="uuid,remove-blank,field-name-mutating,parse-boolean,parse-long,parse-double,parse-date,add-schema-fields">
    <processor class="solr.LogUpdateProcessorFactory"/>
    <processor class="solr.DistributedUpdateProcessorFactory"/>
    <processor class="solr.RunUpdateProcessorFactory"/>
</updateRequestProcessorChain>

That worked for and now I'm only getting pretty error messages like

Error from server at http://localhost:8983/solr: ERROR: [doc=urn:nbn:cz:tst01-000001] unknown field 'title'

as I'm tuning my static, unmanaged schema in schema.xml.

Solr - User, error message This IndexSchema is not mutable with a classicSchemaIndexFactory. Hi guys, I saw an issue in Jira  Atlassian Jira Project Management Software (v8.3.4#803005-sha1:1f96e09); About Jira; Report a problem; Powered by a free Atlassian Jira open source license for Apache Software Foundation.

Update autoCreateFields to false in solrconfig.xml.

${update.autoCreateFields:false}

A noob's guide to indexing data with Solr's classic schema , This post is my newbie guide for setting up classic schema as of Solr v8.3.0. Boo, error-message: “This IndexSchema is not mutable.” But that  Boo, error-message: “This IndexSchema is not mutable.” But that Googling that error-message led me to this post on StackOverflow and the third step: Set update.autoCreateFields:false on line #1197

Another way to do this instead of editing your solrconfig.xml file is to add the update.autoCreateFields=false value to your core.properties file.

subject:"IndexSchema not mutable", RE: [Non-DoD Source] Re: IndexSchema not mutable (UNCLASSIFIED) You have modified solrconfig.xml to use classic schema.xml, but you still have "add-​unknown-field" comcast.net> wrote: > I'm getting this error on crawl at indexing. This IndexSchema is not mutable. Solr 7.3.1 Vincenzo D'Amore; Re: This IndexSchema is not mutable. Solr 7.3.1 Erick Erickson; Re: This IndexSchema is not mutable. Solr 7.3.1 Vincenzo D'Amore; Re: This IndexSchema is not mutable. Solr 7. Vincenzo D'Amore; Re: This IndexSchema is not mutable. Sol Shawn Heisey

I realize this post is old but I ran into the same behavior today when importing a json file. The issue was the .json was not properly formed. It was missing the [] (square brackets) at the top and bottom of the file and the ',' (commas) between the objects. I validated the file using http://jslint.com/. The error was resolved once i made these changes.

NOTE: These were the issues which kept my file from being properly formed. I would suggest that you run your data through some type of validator to rule out whatever issue(s) your file MAY be having.

I hope this helps.

solrj - Solr Error This Indexschema is not mutable -, but indexschema not mutable error when try index flat file using post command. remove addschemafieldsupdateprocessorfactory section  Config API throws Index Not Mutable when creating a RequestHandler on a Classic Schema. This IndexSchema is not mutable. solr.schema.IndexSchema

This IndexSchema is not mutable. Solr 7.3.1, SolrException", "root-error-class","org.apache.solr.common.SolrException"], "msg​":"This IndexSchema is not mutable.", "code":400}}. Do you know why the Solr  This IndexSchema is not mutable. Solr 7.3.1 Vincenzo D'Amore; Re: This IndexSchema is not mutable. Solr 7.3.1 Erick Erickson; Re: This IndexSchema is not mutable. Solr 7.3.1 Vincenzo D'Amore

Solr managed schemas, Do not do this for the xdb indexes. Use this description instead. To populate the schema from the Control Panel: Start Solr. update - solr schema is not editable Solr Error This Indexschema is not mutable (3) At least in Solr 7.2 you should probably just switch update.autoCreateFields to false in the updateRequestProcessorChain definition in solrconfig.xml as the comment indicates.

org.apache.solr.schema.IndexSchema Maven / Gradle / Ivy, tool code. The class is part of the package ➦ Group: org.apache.solr ➦ Artifact: solr-core ➦ Version: 7.4.0. getClass(); log.error(msg); throw new SolrException(​ErrorCode. boolean persist) { String msg = "This IndexSchema is not mutable. However, I'm getting the exception on *org.apache.solr.common.SolrException: This IndexSchema is not mutable*, when I try to do the indexing. Is there other settings that I need to change so that I can use the physical schema.xml (the ClassicIndexSchemaFactory) instead of using the ManagedIndexSchemaFactory? Regards, Edwin

Comments
  • Thanks, great answer, this worked great for me. Can you elaborate as to why this needs done?
  • Worked for me too. Why ins't this selected as the answer?
  • I really don't know why he hasn't yet accepted this as an answer :(...Even though it helped many .
  • @AbhijitBashetti +1. Would you mind expanding on what or how these items solve this problem?
  • Any way to find out what field is failing to match too? Because I thought that all my fields existed. Such a bummer not logging this in the adminUI. :(