Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

update SolrConfig.xml without recreating Collection

avatar
Expert 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

avatar
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.

View solution in original post

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

-pd

View solution in original post

2 REPLIES 2

avatar
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.

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

-pd