Thanks for the reply.

I have tried out on adding a new field to contains the collection id, and
use json facet query to get the count. This is working.

Regards,
Edwin

On Thu, 10 Jan 2019 at 23:33, Hullegård, Jimi <
jimi.hulleg...@svensktnaringsliv.se> wrote:

> Unless someone else has a cleaver solution, maybe one option could be to
> add a new field that simply contains the collection id. Then you could do a
> facet query on that field to get the count per collection.
>
> /Jimi
>
> -----Ursprungligt meddelande-----
> Från: Zheng Lin Edwin Yeo <edwinye...@gmail.com>
> Skickat: den 10 januari 2019 10:41
> Till: solr-user@lucene.apache.org
> Ämne: Single query to get the count for all individual collections
>
> Hi,
>
> I would like to find out, is there any way that I can send a single query
> to retrieve the numFound for all the individual collections?
>
> I have tried with this query
>
> http://localhost:8983/solr/collection1/select?q=*:*&collection=collection1,collection2
> However, this query is doing the sum of all the collections, instead of
> showing the count for each of the collection.
>
> I am using Solr 7.5.0.
>
> Regards,
> Edwin
> Svenskt Näringsliv behandlar dina personuppgifter i enlighet med GDPR. Här
> kan du läsa mer om vår behandling och dina rättigheter, Integritetspolicy<
> https://www.svensktnaringsliv.se/dataskydd/integritet-och-behandling-av-personuppgifter_697219.html?utm_source=sn-email&utm_medium=email
> >
>

Reply via email to