Re: Single query to get the count for all individual collections

2019-01-22 Thread Jan Høydahl
+1 for the most elegant solution so far :) -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com > 22. jan. 2019 kl. 03:15 skrev Joel Bernstein : > > Streaming Expressions can do this: > > plist(stats(collection1, q="*:*", count(*)), >stats(collection2, q="*:*", cou

Re: Single query to get the count for all individual collections

2019-01-21 Thread Joel Bernstein
Streaming Expressions can do this: plist(stats(collection1, q="*:*", count(*)), stats(collection2, q="*:*", count(*)), stats(collection2, q="*:*", count(*))) The plist function is a parallel list of expressions. It will spin each expression off in it's own thread and concatenate t

Re: Single query to get the count for all individual collections

2019-01-21 Thread Jens Brandt
Hi, maybe adding &shards.info=true might help. In case of SolrCloud this gives you numFound for each shard. Regards, Jens > Am 10.01.2019 um 04:40 schrieb Zheng Lin Edwin Yeo : > > Hi, > > I would like to find out, is there any way that I can send a single query > to retrieve the numFound f

Re: Single query to get the count for all individual collections

2019-01-11 Thread Zheng Lin Edwin Yeo
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

Re: Single query to get the count for all individual collections

2019-01-10 Thread Jan Høydahl
Just to a series of cheap http://localhost:8983/solr/mycoll/select?q=*:*&rows=0 requests :) -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com > 10. jan. 2019 kl. 04:40 skrev Zheng Lin Edwin Yeo : > > Hi, > > I would like to find out, is there any way that I can send a