you can use the following 2 ways

1. ZK client API
    you could just do a get_children on the zk node
<zk_root/ch_root>/collections/ to get all collections.

or
without ZK client API point this url at your solrCloud install
http://host:port/solr/zookeeper?detail=true&path=%2Fcollections&_=1384801522456<http://faslnydsrcap03.dev.bloomberg.com:15000/solr/zookeeper?detail=true&path=%2Fcollections&_=1384801522456>

you should be looking for children under the collections node.

I dont know if there is any other easier api, but this should work

enjoy!
-Ani


On Mon, Nov 18, 2013 at 12:48 PM, Dave Seltzer <dselt...@tveyes.com> wrote:

> Hello,
>
> I have a need to dynamically add collections to Solr cloud. The collections
> API makes this quite simple.
>
> However, when I'm done adding the new collection I need to update an Alias
> to include the new collection. To do this I need a list of current
> collections, but I don't see a way to do this.
>
> Does anyone know if there's a way to list all the collections hosted on a
> Solr server?
>
> Thanks!
>
> -Dave
>



-- 
Anirudha P. Jadhav

Reply via email to