But if you're working with multiple configs in zookeeper, be aware that 4.5 
currently has an issue creating multiple collections in a cloud that has 
multiple configs.  It's targeted to be fixed whenever 4.5.1 comes out.

https://issues.apache.org/jira/i#browse/SOLR-5306


-----Original Message-----
From: Shawn Heisey [mailto:s...@elyograg.org] 
Sent: Thursday, October 17, 2013 10:24 AM
To: solr-user@lucene.apache.org
Subject: Re: Change config set for a collection

On 10/17/2013 2:36 AM, michael.boom wrote:
> The question also asked some 10 months ago in 
> http://lucene.472066.n3.nabble.com/SolrCloud-4-1-change-config-set-for
> -a-collection-td4037456.html, and then the answer was negative, but 
> here it goes again, maybe now it's different.
> 
> Is it possible to change the config set of a collection using the 
> Collection API to another one (stored in zookeeper)? If not, is it 
> possible to do it using zkCli ?
> 
> Also how can somebody check which config set a collection is using ?
> Thanks!

The zkcli command "linkconfig" should take care of that.  You'd need to reload 
the collection after making the change.  If you're using a version prior to 
4.4, reloading doesn't work, you need to restart Solr completely.

You can see what config a collection is using with the Cloud->Tree section of 
the admin UI.  Open /collections and click on the collection.
 At the bottom of the right-hand window, it has a small JSON string with 
"configName" in it.  I don't know of a way to easily get this information from 
Solr with a program.  If your program is Java, you could very likely grab the 
zookeeper object from CloudSolrServer and find it that way, but I have no idea 
how to write that code.

Thanks,
Shawn

Reply via email to