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