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 09:51:56 GMT
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 <erickerickson@gmail.com>
wrote:

> I think you want CloudSolrServer.getCollectionList()
>
> Best,
> Erick
>
> On Tue, Dec 2, 2014 at 12:27 AM, Ankit Jain <ankitjaincs06@gmail.com>
> 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

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