You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Dave Seltzer <ds...@tveyes.com> on 2013/11/18 18:48:51 UTC
Listing Collections in Solr Cloud
Hello,
I have a need to dynamically add collections to Solr cloud. The collections
API makes this quite simple.
However, when I'm done adding the new collection I need to update an Alias
to include the new collection. To do this I need a list of current
collections, but I don't see a way to do this.
Does anyone know if there's a way to list all the collections hosted on a
Solr server?
Thanks!
-Dave
Re: Listing Collections in Solr Cloud
Posted by Dave Seltzer <ds...@tveyes.com>.
Thanks for the workaround advice on using the Zookeeper API. LIST is would
definitely be at home inside the Collections API.
Created https://issues.apache.org/jira/browse/SOLR-5466 in response to this
thread.
-Dave
On Mon, Nov 18, 2013 at 2:15 PM, Anirudha Jadhav <an...@nyu.edu> wrote:
> i'll create one, i'll reach you if I need anything. thanks
>
>
> On Mon, Nov 18, 2013 at 2:13 PM, Mark Miller <ma...@gmail.com>
> wrote:
>
> > We should have a list command in the collections api. I can help if
> > someone wants to make a JIRA issue.
> >
> > - Mark
> >
> > On Nov 18, 2013, at 2:11 PM, Anirudha Jadhav <an...@nyu.edu> wrote:
> >
> > > you can use the following 2 ways
> > >
> > > 1. ZK client API
> > > you could just do a get_children on the zk node
> > > <zk_root/ch_root>/collections/ to get all collections.
> > >
> > > or
> > > without ZK client API point this url at your solrCloud install
> > > http://host:port
> > /solr/zookeeper?detail=true&path=%2Fcollections&_=1384801522456<
> >
> http://faslnydsrcap03.dev.bloomberg.com:15000/solr/zookeeper?detail=true&path=%2Fcollections&_=1384801522456
> > >
> > >
> > > you should be looking for children under the collections node.
> > >
> > > I dont know if there is any other easier api, but this should work
> > >
> > > enjoy!
> > > -Ani
> > >
> > >
> > > On Mon, Nov 18, 2013 at 12:48 PM, Dave Seltzer <ds...@tveyes.com>
> > wrote:
> > >
> > >> Hello,
> > >>
> > >> I have a need to dynamically add collections to Solr cloud. The
> > collections
> > >> API makes this quite simple.
> > >>
> > >> However, when I'm done adding the new collection I need to update an
> > Alias
> > >> to include the new collection. To do this I need a list of current
> > >> collections, but I don't see a way to do this.
> > >>
> > >> Does anyone know if there's a way to list all the collections hosted
> on
> > a
> > >> Solr server?
> > >>
> > >> Thanks!
> > >>
> > >> -Dave
> > >>
> > >
> > >
> > >
> > > --
> > > Anirudha P. Jadhav
> >
> >
>
>
> --
> Anirudha P. Jadhav
>
Re: Listing Collections in Solr Cloud
Posted by Anirudha Jadhav <an...@nyu.edu>.
i'll create one, i'll reach you if I need anything. thanks
On Mon, Nov 18, 2013 at 2:13 PM, Mark Miller <ma...@gmail.com> wrote:
> We should have a list command in the collections api. I can help if
> someone wants to make a JIRA issue.
>
> - Mark
>
> On Nov 18, 2013, at 2:11 PM, Anirudha Jadhav <an...@nyu.edu> wrote:
>
> > you can use the following 2 ways
> >
> > 1. ZK client API
> > you could just do a get_children on the zk node
> > <zk_root/ch_root>/collections/ to get all collections.
> >
> > or
> > without ZK client API point this url at your solrCloud install
> > http://host:port
> /solr/zookeeper?detail=true&path=%2Fcollections&_=1384801522456<
> http://faslnydsrcap03.dev.bloomberg.com:15000/solr/zookeeper?detail=true&path=%2Fcollections&_=1384801522456
> >
> >
> > you should be looking for children under the collections node.
> >
> > I dont know if there is any other easier api, but this should work
> >
> > enjoy!
> > -Ani
> >
> >
> > On Mon, Nov 18, 2013 at 12:48 PM, Dave Seltzer <ds...@tveyes.com>
> wrote:
> >
> >> Hello,
> >>
> >> I have a need to dynamically add collections to Solr cloud. The
> collections
> >> API makes this quite simple.
> >>
> >> However, when I'm done adding the new collection I need to update an
> Alias
> >> to include the new collection. To do this I need a list of current
> >> collections, but I don't see a way to do this.
> >>
> >> Does anyone know if there's a way to list all the collections hosted on
> a
> >> Solr server?
> >>
> >> Thanks!
> >>
> >> -Dave
> >>
> >
> >
> >
> > --
> > Anirudha P. Jadhav
>
>
--
Anirudha P. Jadhav
Re: Listing Collections in Solr Cloud
Posted by Mark Miller <ma...@gmail.com>.
We should have a list command in the collections api. I can help if someone wants to make a JIRA issue.
- Mark
On Nov 18, 2013, at 2:11 PM, Anirudha Jadhav <an...@nyu.edu> wrote:
> you can use the following 2 ways
>
> 1. ZK client API
> you could just do a get_children on the zk node
> <zk_root/ch_root>/collections/ to get all collections.
>
> or
> without ZK client API point this url at your solrCloud install
> http://host:port/solr/zookeeper?detail=true&path=%2Fcollections&_=1384801522456<http://faslnydsrcap03.dev.bloomberg.com:15000/solr/zookeeper?detail=true&path=%2Fcollections&_=1384801522456>
>
> you should be looking for children under the collections node.
>
> I dont know if there is any other easier api, but this should work
>
> enjoy!
> -Ani
>
>
> On Mon, Nov 18, 2013 at 12:48 PM, Dave Seltzer <ds...@tveyes.com> wrote:
>
>> Hello,
>>
>> I have a need to dynamically add collections to Solr cloud. The collections
>> API makes this quite simple.
>>
>> However, when I'm done adding the new collection I need to update an Alias
>> to include the new collection. To do this I need a list of current
>> collections, but I don't see a way to do this.
>>
>> Does anyone know if there's a way to list all the collections hosted on a
>> Solr server?
>>
>> Thanks!
>>
>> -Dave
>>
>
>
>
> --
> Anirudha P. Jadhav
Re: Listing Collections in Solr Cloud
Posted by Anirudha Jadhav <an...@nyu.edu>.
you can use the following 2 ways
1. ZK client API
you could just do a get_children on the zk node
<zk_root/ch_root>/collections/ to get all collections.
or
without ZK client API point this url at your solrCloud install
http://host:port/solr/zookeeper?detail=true&path=%2Fcollections&_=1384801522456<http://faslnydsrcap03.dev.bloomberg.com:15000/solr/zookeeper?detail=true&path=%2Fcollections&_=1384801522456>
you should be looking for children under the collections node.
I dont know if there is any other easier api, but this should work
enjoy!
-Ani
On Mon, Nov 18, 2013 at 12:48 PM, Dave Seltzer <ds...@tveyes.com> wrote:
> Hello,
>
> I have a need to dynamically add collections to Solr cloud. The collections
> API makes this quite simple.
>
> However, when I'm done adding the new collection I need to update an Alias
> to include the new collection. To do this I need a list of current
> collections, but I don't see a way to do this.
>
> Does anyone know if there's a way to list all the collections hosted on a
> Solr server?
>
> Thanks!
>
> -Dave
>
--
Anirudha P. Jadhav