Thanks for the workaround advice on using the Zookeeper API. LIST is would definitely be at home inside the Collections API.
Created https://issues.apache.org/jira/browse/SOLR-5466 in response to this thread. -Dave On Mon, Nov 18, 2013 at 2:15 PM, Anirudha Jadhav <aniru...@nyu.edu> wrote: > i'll create one, i'll reach you if I need anything. thanks > > > On Mon, Nov 18, 2013 at 2:13 PM, Mark Miller <markrmil...@gmail.com> > wrote: > > > We should have a list command in the collections api. I can help if > > someone wants to make a JIRA issue. > > > > - Mark > > > > On Nov 18, 2013, at 2:11 PM, Anirudha Jadhav <aniru...@nyu.edu> wrote: > > > > > 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 > > > > > > > -- > Anirudha P. Jadhav >