Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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