Gaaah, Shawn is exactly correct, sorry for the confusion... Erick
On Wed, Dec 3, 2014 at 8:10 AM, Shawn Heisey <[email protected]> wrote: > On 12/3/2014 2:51 AM, Ankit Jain wrote: >> Hi Erick, >> >> We are using the 4.7.2 version of solr and no getCollectionList() method is >> present in CloudSolrServer class. > > That method is private, so you can't use it in a user program. I think > this would probably do what you want, if server is an instance of > CloudSolrServer: > > Set<String> list = > server.getZkStateReader().getClusterState().getCollections(); > > Thanks, > Shawn >
