lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <apa...@elyograg.org>
Subject Re: Get list of collection
Date Wed, 03 Dec 2014 16:10:02 GMT
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


Mime
View raw message