The reason we wanted to do a single call is to improve on the performance,
as our application requires to list the total number of records in each of
the collections, and the number of records that matches the query each of
the collections.

Currently we are querying each collection one by one to retrieve the
numFound value and display them, but this can slow down the system
significantly when the number of collection grows. So we are thinking of
ways to improve the speed in this area.

Any other methods which you can suggest that we can do to overcome this
speed problem?

Regards,
Edwin
On 5 Jun 2015 00:16, "Erick Erickson" <erickerick...@gmail.com> wrote:

> Not in a single call that I know of. These are really orthogonal
> concepts. Getting the cluster status merely involves reading the
> Zookeeper clusterstate whereas getting the total number of docs for
> each would involve querying each collection, i.e. going to the Solr
> nodes themselves. I'd guess it's unlikely to be combined.
>
> Best,
> Erick
>
> On Thu, Jun 4, 2015 at 7:47 AM, Zheng Lin Edwin Yeo
> <edwinye...@gmail.com> wrote:
> > Hi,
> >
> > Would like to check, are we able to use the Collection API or any other
> > method to list all the collections in the cluster together with the
> number
> > of records in each of the collections in one output?
> >
> > Currently, I only know of the List Collections
> > /admin/collections?action=LIST. However, this only list the names of the
> > collections that are in the cluster, but not the number of records.
> >
> > Is there a way to show the number of records in each of the collections
> as
> > well?
> >
> > Regards,
> > Edwin
>

Reply via email to