You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Pedro Figueiredo <pj...@criticalsoftware.com> on 2015/03/12 19:43:55 UTC

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 status Resolved, but the resolution is not identified in the issue.

I am facing the exact same problem.. and not able to identified the
solution.

 

In the last comment of the issue, is said that this kind of questions should
be done in the solr-user mailing list.. 

So anyone. I'll appreciate any kind of help.

 

Thanks is advanced!

 

Best regards,

Pedro Figueiredo


RE: error message This IndexSchema is not mutable with a classicSchemaIndexFactory

Posted by Pedro Figueiredo <pj...@criticalsoftware.com>.
Hello Shawn,

Yes! That was exactly what happened...
After your recommendation the insert using solrj was successful.

Many thanks!

Best regards,

Pedro Figueiredo
Senior Engineer

pjlfigueiredo@criticalsoftware.com
M. 934058150
 

Rua Engº Frederico Ulrich, nº 2650 4470-605 Moreira da Maia, Portugal
T. +351 229 446 927 | F. +351 229 446 929
www.criticalsoftware.com

PORTUGAL | UK | GERMANY | USA | BRAZIL | MOZAMBIQUE | ANGOLA
A CMMI® LEVEL 5 RATED COMPANY CMMI® is registered in the USPTO by CMU"
 


-----Original Message-----
From: Shawn Heisey [mailto:apache@elyograg.org] 
Sent: 12 March 2015 22:45
To: solr-user@lucene.apache.org
Subject: Re: error message This IndexSchema is not mutable with a classicSchemaIndexFactory

On 3/12/2015 12:43 PM, Pedro Figueiredo wrote:
> I saw an issue in Jira 
> (https://issues.apache.org/jira/browse/SOLR-7234)
> with status Resolved, but the resolution is not identified in the issue.
>
> I am facing the exact same problem.. and not able to identified the 
> solution.

I believe the problem is that you are using ClassicSchemaIndexFactory, but you did not remove AddSchemaFieldsUpdateProcessorFactory from the updateRequestProcessorChain config.  That update processor requires the managed schema factory.

Chances are that you started with the data-driven example config set and then realized you did not need/want the managed schema, so you switched to the classic factory.  If you do not want the managed schema, you should probably start with the techproducts example rather than the data-driven example.

I think we need to add some info to the schemaFactory comment in the data-driven example config so that people know they need to also modify the update processor chain when they want to disable the Schema API.

Thanks,
Shawn


Re: error message This IndexSchema is not mutable with a classicSchemaIndexFactory

Posted by Shawn Heisey <ap...@elyograg.org>.
On 3/12/2015 12:43 PM, Pedro Figueiredo wrote:
> I saw an issue in Jira (https://issues.apache.org/jira/browse/SOLR-7234)
> with status Resolved, but the resolution is not identified in the issue.
>
> I am facing the exact same problem.. and not able to identified the
> solution.

I believe the problem is that you are using ClassicSchemaIndexFactory,
but you did not remove AddSchemaFieldsUpdateProcessorFactory from the
updateRequestProcessorChain config.  That update processor requires the
managed schema factory.

Chances are that you started with the data-driven example config set and
then realized you did not need/want the managed schema, so you switched
to the classic factory.  If you do not want the managed schema, you
should probably start with the techproducts example rather than the
data-driven example.

I think we need to add some info to the schemaFactory comment in the
data-driven example config so that people know they need to also modify
the update processor chain when they want to disable the Schema API.

Thanks,
Shawn


RE: error message This IndexSchema is not mutable with a classicSchemaIndexFactory

Posted by Chris Hostetter <ho...@fucit.org>.
what does your schema.xml look like?

what does your solrconfig.xml look like?

what does the document you are indexing look like?

what is the full error with stack trace from your server logs?

details matter.

https://wiki.apache.org/solr/UsingMailingLists


: Date: Thu, 12 Mar 2015 20:27:05 +0000
: From: Pedro Figueiredo <pj...@criticalsoftware.com>
: Reply-To: solr-user@lucene.apache.org
: To: "solr-user@lucene.apache.org" <so...@lucene.apache.org>
: Subject: RE: error message This IndexSchema is not mutable with a
:     classicSchemaIndexFactory
: 
: Hello Alex,
: 
: I'm trying to add a new document, using solrj and the error "This IndexSchema is not mutable" is raised when inserting the document in the solr index.
: My index in solr, is configured with classicSchemaIndexFactory. 
: If I change it to AutoManaged the insert is done without any problems.
: 
: I believe that there is no mutable configuration (true or false) for ClassicSchema as for AutoManaged. 
: 
: The document does not have any new field, all fields are specified in the schema.xml file.
: 
: Any thoughts!?
: 
: Thanks!
: Pedro Figueiredo
: ________________________________________
: De: Alexandre Rafalovitch [arafalov@gmail.com]
: Enviado: quinta-feira, 12 de Março de 2015 19:04
: Para: solr-user
: Assunto: Re: error message This IndexSchema is not mutable with a classicSchemaIndexFactory
: 
: The answer meant it was most likely something user has done not quite
: understanding Solr's behavior. Not a bug. I'd ignore that case and
: just explain what your issue actually is.
: 
: Regards,
:    Alex.
: ----
: Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter:
: http://www.solr-start.com/
: 
: 
: On 12 March 2015 at 14:43, Pedro Figueiredo
: <pj...@criticalsoftware.com> wrote:
: > Hi guys,
: >
: >
: >
: > I saw an issue in Jira (https://issues.apache.org/jira/browse/SOLR-7234)
: > with status Resolved, but the resolution is not identified in the issue.
: >
: > I am facing the exact same problem.. and not able to identified the
: > solution.
: >
: >
: >
: > In the last comment of the issue, is said that this kind of questions should
: > be done in the solr-user mailing list..
: >
: > So anyone. I'll appreciate any kind of help.
: >
: >
: >
: > Thanks is advanced!
: >
: >
: >
: > Best regards,
: >
: > Pedro Figueiredo
: >
: 

-Hoss
http://www.lucidworks.com/

RE: error message This IndexSchema is not mutable with a classicSchemaIndexFactory

Posted by Pedro Figueiredo <pj...@criticalsoftware.com>.
Hello Alex,

I'm trying to add a new document, using solrj and the error "This IndexSchema is not mutable" is raised when inserting the document in the solr index.
My index in solr, is configured with classicSchemaIndexFactory. 
If I change it to AutoManaged the insert is done without any problems.

I believe that there is no mutable configuration (true or false) for ClassicSchema as for AutoManaged. 

The document does not have any new field, all fields are specified in the schema.xml file.

Any thoughts!?

Thanks!
Pedro Figueiredo
________________________________________
De: Alexandre Rafalovitch [arafalov@gmail.com]
Enviado: quinta-feira, 12 de Março de 2015 19:04
Para: solr-user
Assunto: Re: error message This IndexSchema is not mutable with a classicSchemaIndexFactory

The answer meant it was most likely something user has done not quite
understanding Solr's behavior. Not a bug. I'd ignore that case and
just explain what your issue actually is.

Regards,
   Alex.
----
Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter:
http://www.solr-start.com/


On 12 March 2015 at 14:43, Pedro Figueiredo
<pj...@criticalsoftware.com> wrote:
> Hi guys,
>
>
>
> I saw an issue in Jira (https://issues.apache.org/jira/browse/SOLR-7234)
> with status Resolved, but the resolution is not identified in the issue.
>
> I am facing the exact same problem.. and not able to identified the
> solution.
>
>
>
> In the last comment of the issue, is said that this kind of questions should
> be done in the solr-user mailing list..
>
> So anyone. I'll appreciate any kind of help.
>
>
>
> Thanks is advanced!
>
>
>
> Best regards,
>
> Pedro Figueiredo
>

Re: error message This IndexSchema is not mutable with a classicSchemaIndexFactory

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
The answer meant it was most likely something user has done not quite
understanding Solr's behavior. Not a bug. I'd ignore that case and
just explain what your issue actually is.

Regards,
   Alex.
----
Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter:
http://www.solr-start.com/


On 12 March 2015 at 14:43, Pedro Figueiredo
<pj...@criticalsoftware.com> wrote:
> Hi guys,
>
>
>
> I saw an issue in Jira (https://issues.apache.org/jira/browse/SOLR-7234)
> with status Resolved, but the resolution is not identified in the issue.
>
> I am facing the exact same problem.. and not able to identified the
> solution.
>
>
>
> In the last comment of the issue, is said that this kind of questions should
> be done in the solr-user mailing list..
>
> So anyone. I'll appreciate any kind of help.
>
>
>
> Thanks is advanced!
>
>
>
> Best regards,
>
> Pedro Figueiredo
>