Reply
Explorer
Posts: 20
Registered: ‎01-19-2017
Accepted Solution

update SolrConfig.xml without recreating Collection

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.

Posts: 137
Topics: 7
Kudos: 15
Solutions: 14
Registered: ‎07-16-2015

Re: update SolrConfig.xml without recreating Collection

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
Cloudera Employee
Posts: 172
Registered: ‎01-09-2014

Re: update SolrConfig.xml without recreating Collection

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

-pd
Announcements