lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ankit Jain <ankitjainc...@gmail.com>
Subject Re: Get list of collection
Date Wed, 03 Dec 2014 17:21:19 GMT
Thanks Shawn ...

Thanks,
Ankit

On Wed, Dec 3, 2014 at 9:40 PM, Shawn Heisey <apache@elyograg.org> 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
>
>


-- 
Thanks,
Ankit Jain

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message