Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

update SolrConfig.xml without recreating Collection

SOLVED Go to solution

update SolrConfig.xml without recreating Collection

Contributor

Currently we are using CDH 5.4.8 with Solr 4.4  version. in the SolrConfig.xml file we like to change autocommit field for soft commit and hard commit. I found solution like deleting the collection and recreated it. But we have huge amount of data on solr colllection. We really don't want to delete and recreate it. Is there option is available to just update SolrConfig.xml alone with out deleted the collection or is there any possibility there to take snapshot of the current collection and restore it.

2 ACCEPTED SOLUTIONS

Accepted Solutions

Re: update SolrConfig.xml without recreating Collection

Super Collaborator

solrctl allow you to "update" the config stored in ZK.

Maybe after that you could call a "RELOAD" of that collection using Solr collection API ?

 

I have not tried it, but I would definitely investigate on that direction if I had this kind of requirement.

Highlighted

Re: update SolrConfig.xml without recreating Collection

Super Collaborator
Mathieu is correct, you can use:
solrctl instancedir --update collection1 /path/to/collection1
solrctl collection --reload collection

-pd
2 REPLIES 2

Re: update SolrConfig.xml without recreating Collection

Super Collaborator

solrctl allow you to "update" the config stored in ZK.

Maybe after that you could call a "RELOAD" of that collection using Solr collection API ?

 

I have not tried it, but I would definitely investigate on that direction if I had this kind of requirement.

Highlighted

Re: update SolrConfig.xml without recreating Collection

Super Collaborator
Mathieu is correct, you can use:
solrctl instancedir --update collection1 /path/to/collection1
solrctl collection --reload collection

-pd