Yes, Restart is not needed for schema changes apart from some configuration
changes, such as the DataDir location and IndexWriter related settings in
solrconfig.xml which can not be changed and made active with a simple
RELOAD action.

Note :you might have to reindex the data in your collection after the
reload based on what changes you make to schema.xml or solrconfig.xml

Did you get any error while uploading or reloading the collection.

ideally once the config upload is done , you can validate if your changes
are seen in solr admin UI and then for those changes to be in action you
can reload the collection.



On Tue, Nov 23, 2021 at 12:48 PM VIshal Patel <vishalpatel202...@outlook.com>
wrote:

> Thanks for reply.
>
> We are using Solr cloud mode[used zookeeper]. Generally, when we change in
> schema or solrconfig then first we do upconfig command and then restart the
> solr.
>
> We have used classic schema factory.
> below line in our solrconfig.xml
> <schemaFactory class="ClassicIndexSchemaFactory"/>
> Is it not necessary to restart Solr server for ClassicIndexSchemaFactory?
> Will it work after reload the collection?
>
> Regards,
> VIshal
> ________________________________
> From: Shawn Heisey <apa...@elyograg.org>
> Sent: Monday, November 22, 2021 10:05 PM
> To: users@solr.apache.org <users@solr.apache.org>
> Subject: Re: Schema change without restart Solr 6.1.0
>
> On 11/22/21 2:24 AM, VIshal Patel wrote:
> > I am using Solr 6.1.0. In production environment I want to do schema
> change without restarting Solr.
> > I have tried with
> http://1.1.1.1:7983/solr/admin/cores?action=RELOAD&core=forms but It did
> not work.
> > (
> https://stackoverflow.com/questions/23782123/how-do-i-change-schema-xml-without-restarting-solr
> )
> >
> > Our directory like this
> > \server\solr\forms\conf\schema.xml
> > \server\solr\forms\conf\solrconfig.xml
> >
> > Can it possible schema change without Solr restart?
>
> Reloading the index SHOULD activate schema changes without a full restart.
>
> Is Solr in cloud mode (solr+zookeeper)?  If it is, then as Tulsi Das
> mentioned, you have to change the config in zookeeper, not the one on
> the disk.  The name of your core would suggest that you're NOT in cloud
> mode, but I cannot be sure about that.
>
> Whether you're in cloud mode or not... are you using the classic schema
> factory in solrconfig.xml?  If not, then the name of the active schema
> file is most likely managed-schema (with no extension) rather than
> schema.xml.
>
> Thanks,
> Shawn
>
>
>

Reply via email to