Hi Erick, We are using the 4.7.2 version of solr and no getCollectionList() method is present in CloudSolrServer class.
Regards, Ankit Jain On Tue, Dec 2, 2014 at 8:18 PM, Erick Erickson <[email protected]> wrote: > I think you want CloudSolrServer.getCollectionList() > > Best, > Erick > > On Tue, Dec 2, 2014 at 12:27 AM, Ankit Jain <[email protected]> > wrote: > > Hi All, > > > > I have a requirement to get the list of *collection* available in Solr. > we > > are using solrj library. > > > > I am able to fetch the list of cores but not getting ways to fetch the > list > > of collections. > > > > Below is the sample example, that i am using to fetch the cores: > > > > CoreAdminRequest request = new CoreAdminRequest(); > > request.setAction(CoreAdminAction.STATUS); > > CoreAdminResponse cores = request.process(server); > > > > // List of the cores > > List<String> coreList = new ArrayList<String>(); > > for (int i = 0; i < cores.getCoreStatus().size(); i++) { > > coreList.add(cores.getCoreStatus().getName(i)); > > } > > > > Please help. > > > > -- > > Thanks, > > Ankit Jain > -- Thanks, Ankit Jain
